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>
This commit is contained in:
Bjørn Mork 2013-04-16 00:17:07 +00:00 committed by David S. Miller
parent 91c4166c1a
commit 32b161aa88

View File

@ -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: