From: Alexander Aring Date: Tue, 29 Jul 2014 21:47:03 +0000 (+0200) Subject: 6lowpan: iphc: remove check on null X-Git-Tag: v3.17-rc1~106^2~12^2~27 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b2e3a479a6ae937b32aa0a8fffc541e4e7778734;p=karo-tx-linux.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c index d4fc2dd8ad75..de78deb49959 100644 --- a/net/6lowpan/iphc.c +++ b/net/6lowpan/iphc.c @@ -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) {