Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Oliver Neukum and committed by
David S. Miller
7fa2d170 36884330

+1 -1
+1 -1
drivers/net/usb/cdc_eem.c
··· 218 218 if (unlikely(!skb2)) 219 219 goto next; 220 220 skb_trim(skb2, len); 221 - put_unaligned_le16(BIT(15) | (1 << 11) | len, 221 + put_unaligned_le16(BIT(15) | BIT(11) | len, 222 222 skb_push(skb2, 2)); 223 223 eem_linkcmd(dev, skb2); 224 224 break;