summaryrefslogtreecommitdiffstats
path: root/net/6lowpan
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-07-29 23:47:03 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-07-30 19:28:39 +0200
commitb2e3a479a6ae937b32aa0a8fffc541e4e7778734 (patch)
tree544917c605a8676effb7046e16641f48e876fe59 /net/6lowpan
parent6lowpan: iphc: use ipv6 api to check address scope (diff)
downloadlinux-b2e3a479a6ae937b32aa0a8fffc541e4e7778734.tar.xz
linux-b2e3a479a6ae937b32aa0a8fffc541e4e7778734.zip
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')
-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) {