Skip to content

Commit

Permalink
6lowpan: iphc: remove check on null
Browse files Browse the repository at this point in the history
This memory is placed on stack and can't be null so remove the check on
null.

Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
alexaring authored and holtmann committed Jul 30, 2014
1 parent 556a5bf commit b2e3a47
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/6lowpan/iphc.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,6 @@ uncompress_udp_header(struct sk_buff *skb, struct udphdr *uh)
bool fail;
u8 tmp = 0, val = 0;

if (!uh)
goto err;

fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp));

if ((tmp & LOWPAN_NHC_UDP_MASK) == LOWPAN_NHC_UDP_ID) {
Expand Down

0 comments on commit b2e3a47

Please sign in to comment.