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:
parent
91c4166c1a
commit
32b161aa88
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue