From: Alexander Aring Date: Mon, 28 Oct 2013 09:24:17 +0000 (+0100) Subject: 6lowpan: remove unnecessary check on err >= 0 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=53cb5717b491332df8e899a16246c223f64d069a;p=linux-beck.git 6lowpan: remove unnecessary check on err >= 0 The err variable can only be zero in this case. Signed-off-by: Alexander Aring Reviewed-by: Werner Almesberger Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index d2880352344e..9057f831dc1f 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -1179,7 +1179,7 @@ lowpan_skb_fragmentation(struct sk_buff *skb, struct net_device *dev) head[0] &= ~LOWPAN_DISPATCH_FRAG1; head[0] |= LOWPAN_DISPATCH_FRAGN; - while ((payload_length - offset > 0) && (err >= 0)) { + while (payload_length - offset > 0) { int len = LOWPAN_FRAG_SIZE; head[4] = offset / 8;