Commit 7fa2d170 authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller

cdc-eem: always use BIT

Either you use BIT(x) or 1 << x in the same expression.
Mixing them is ridiculous. Go to BIT()
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 36884330
...@@ -218,7 +218,7 @@ static int eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb) ...@@ -218,7 +218,7 @@ static int eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
if (unlikely(!skb2)) if (unlikely(!skb2))
goto next; goto next;
skb_trim(skb2, len); skb_trim(skb2, len);
put_unaligned_le16(BIT(15) | (1 << 11) | len, put_unaligned_le16(BIT(15) | BIT(11) | len,
skb_push(skb2, 2)); skb_push(skb2, 2));
eem_linkcmd(dev, skb2); eem_linkcmd(dev, skb2);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment