diff options
author | Alexander Aring <alex.aring@gmail.com> | 2013-10-28 05:24:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-28 19:47:51 -0400 |
commit | 53cb5717b491332df8e899a16246c223f64d069a (patch) | |
tree | d78a47a919af27b613b551ecce182cf007661286 /net/ieee802154 | |
parent | 545f3613a88f97d6ef5647376213bbca87d7596e (diff) |
6lowpan: remove unnecessary check on err >= 0
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>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/6lowpan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1179 | head[0] &= ~LOWPAN_DISPATCH_FRAG1; | 1179 | head[0] &= ~LOWPAN_DISPATCH_FRAG1; |
1180 | head[0] |= LOWPAN_DISPATCH_FRAGN; | 1180 | head[0] |= LOWPAN_DISPATCH_FRAGN; |
1181 | 1181 | ||
1182 | while ((payload_length - offset > 0) && (err >= 0)) { | 1182 | while (payload_length - offset > 0) { |
1183 | int len = LOWPAN_FRAG_SIZE; | 1183 | int len = LOWPAN_FRAG_SIZE; |
1184 | 1184 | ||
1185 | head[4] = offset / 8; | 1185 | head[4] = offset / 8; |