projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
545f361
)
6lowpan: remove unnecessary check on err >= 0
author
Alexander Aring
<alex.aring@gmail.com>
Mon, 28 Oct 2013 09:24:17 +0000
(10:24 +0100)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ieee802154/6lowpan.c
b/net/ieee802154/6lowpan.c
index d2880352344e30df976ae9a269b4120fe80f47ff..9057f831dc1f9611b42ab5e15233f81cde2a7a99 100644
(file)
--- 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;