diff options
author | Oliver Neukum <oneukum@suse.com> | 2022-06-30 13:51:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-01 13:39:03 +0100 |
commit | 7fa2d1707d4102a5b3dcd3f49b235015f4d66955 (patch) | |
tree | d03ad4087fab7d920a90ca89ca40851e9cefdd09 /drivers/net/usb | |
parent | 368843301d08de38186fcd98e991fc12caac72b1 (diff) | |
download | linux-7fa2d1707d4102a5b3dcd3f49b235015f4d66955.tar.gz linux-7fa2d1707d4102a5b3dcd3f49b235015f4d66955.tar.bz2 linux-7fa2d1707d4102a5b3dcd3f49b235015f4d66955.zip |
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: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/cdc_eem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/cdc_eem.c b/drivers/net/usb/cdc_eem.c index 359ea0d10e59..baa9b14b1644 100644 --- a/drivers/net/usb/cdc_eem.c +++ b/drivers/net/usb/cdc_eem.c @@ -218,7 +218,7 @@ static int eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb) if (unlikely(!skb2)) goto next; skb_trim(skb2, len); - put_unaligned_le16(BIT(15) | (1 << 11) | len, + put_unaligned_le16(BIT(15) | BIT(11) | len, skb_push(skb2, 2)); eem_linkcmd(dev, skb2); break; |