Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32b161aa authored by Bjørn Mork's avatar Bjørn Mork Committed by David S. Miller
Browse files

net: cdc_mbim: remove bogus sizeof()



The intention was to test against the constant, not the size of
the constant.

Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 91c4166c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: