Skip to content

Commit b2e3a47

Browse files
alexaringholtmann
authored andcommitted
6lowpan: iphc: remove check on null
This memory is placed on stack and can't be null so remove the check on null. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 556a5bf commit b2e3a47

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/6lowpan/iphc.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,6 @@ uncompress_udp_header(struct sk_buff *skb, struct udphdr *uh)
268268
bool fail;
269269
u8 tmp = 0, val = 0;
270270

271-
if (!uh)
272-
goto err;
273-
274271
fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp));
275272

276273
if ((tmp & LOWPAN_NHC_UDP_MASK) == LOWPAN_NHC_UDP_ID) {

0 commit comments

Comments
 (0)