6lowpan: remove unnecessary check on err >= 0
authorAlexander Aring <alex.aring@gmail.com>
Mon, 28 Oct 2013 09:24:17 +0000 (10:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2013 23:47:51 +0000 (19:47 -0400)
The err variable can only be zero in this case.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c

index d2880352344e30df976ae9a269b4120fe80f47ff..9057f831dc1f9611b42ab5e15233f81cde2a7a99 100644 (file)
@@ -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;