projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91c4166
)
net: cdc_mbim: remove bogus sizeof()
author
Bjørn Mork
<bjorn@mork.no>
Tue, 16 Apr 2013 00:17:07 +0000
(
00:17
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 16 Apr 2013 20:44:36 +0000
(16:44 -0400)
The intention was to test against the constant, not the size of
the constant.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_mbim.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/cdc_mbim.c
b/drivers/net/usb/cdc_mbim.c
index 16c842997291483eb12306d9ccf0a638772f18f0..6bd91676d2cbb9a46b43108ae1fa994d4fca84f9 100644
(file)
--- a/
drivers/net/usb/cdc_mbim.c
+++ b/
drivers/net/usb/cdc_mbim.c
@@
-134,7
+134,7
@@
static struct sk_buff *cdc_mbim_tx_fixup(struct usbnet *dev, struct sk_buff *skb
goto error;
if (skb) {
- if (skb->len <=
sizeof(ETH_HLEN)
)
+ if (skb->len <=
ETH_HLEN
)
goto error;
/* mapping VLANs to MBIM sessions: