Skip to content

Commit

Permalink
6lowpan: remove unnecessary check on err >= 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Aring authored and David S. Miller committed Oct 28, 2013
1 parent 545f361 commit 53cb571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 53cb571

Please sign in to comment.