diff options
| author | Bjørn Mork <bjorn@mork.no> | 2013-04-15 20:17:07 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-04-16 16:44:36 -0400 |
| commit | 32b161aa88aa40a83888a995c6e2ef81140219b1 (patch) | |
| tree | b1359df19a460d129064029caa9c8b60a9b951eb | |
| parent | 91c4166c1a01c00b8bed74f7a7defa620071de88 (diff) | |
net: cdc_mbim: remove bogus sizeof()
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>
| -rw-r--r-- | drivers/net/usb/cdc_mbim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/cdc_mbim.c b/drivers/net/usb/cdc_mbim.c index 16c842997291..6bd91676d2cb 100644 --- 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 | |||
| 134 | goto error; | 134 | goto error; |
| 135 | 135 | ||
| 136 | if (skb) { | 136 | if (skb) { |
| 137 | if (skb->len <= sizeof(ETH_HLEN)) | 137 | if (skb->len <= ETH_HLEN) |
| 138 | goto error; | 138 | goto error; |
| 139 | 139 | ||
| 140 | /* mapping VLANs to MBIM sessions: | 140 | /* mapping VLANs to MBIM sessions: |
