aboutsummaryrefslogtreecommitdiffstats
path: root/net/6lowpan
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-07-29 17:47:03 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-30 13:28:39 -0400
commitb2e3a479a6ae937b32aa0a8fffc541e4e7778734 (patch)
tree544917c605a8676effb7046e16641f48e876fe59 /net/6lowpan
parent556a5bfc03c35c6f0b4e85ef6a19d00f0eb6dd00 (diff)
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)
268 bool fail; 268 bool fail;
269 u8 tmp = 0, val = 0; 269 u8 tmp = 0, val = 0;
270 270
271 if (!uh)
272 goto err;
273
274 fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp)); 271 fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp));
275 272
276 if ((tmp & LOWPAN_NHC_UDP_MASK) == LOWPAN_NHC_UDP_ID) { 273 if ((tmp & LOWPAN_NHC_UDP_MASK) == LOWPAN_NHC_UDP_ID) {