summaryrefslogtreecommitdiff
path: root/net/6lowpan/iphc.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-07-30 01:47:03 +0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-30 21:28:39 +0400
commitb2e3a479a6ae937b32aa0a8fffc541e4e7778734 (patch)
tree544917c605a8676effb7046e16641f48e876fe59 /net/6lowpan/iphc.c
parent556a5bfc03c35c6f0b4e85ef6a19d00f0eb6dd00 (diff)
downloadlinux-b2e3a479a6ae937b32aa0a8fffc541e4e7778734.tar.xz
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>
Diffstat (limited to 'net/6lowpan/iphc.c')
-rw-r--r--net/6lowpan/iphc.c3
1 files changed, 0 insertions, 3 deletions
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) {