summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-07-29 21:47:03 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2014-07-30 17:28:39 (GMT)
commitb2e3a479a6ae937b32aa0a8fffc541e4e7778734 (patch)
tree544917c605a8676effb7046e16641f48e876fe59 /net
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')
-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 d4fc2dd..de78deb 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) {