linux/drivers/net/ethernet/marvell
Dan Carpenter c77662605d cteontx2-pf: cn10k: Prevent harmless double shift bugs
These defines are used with set_bit() and test_bit() which take a bit
number.  In other words, the code is doing:

	if (BIT(BIT(1)) & pf->hw.cap_flag) {

This was done consistently so it did not cause a problem at runtime but
it's still worth fixing.

Fixes: facede8209 ("octeontx2-pf: cn10k: Add mbox support for CN10K")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-02-17 14:26:49 -08:00
..
mvpp2 net: mvpp2: Add TX flow control support for jumbo frames 2021-02-15 13:37:13 -08:00
octeontx2 cteontx2-pf: cn10k: Prevent harmless double shift bugs 2021-02-17 14:26:49 -08:00
prestera net: switchdev: pass flags and mask to both {PRE_,}BRIDGE_FLAGS attributes 2021-02-12 17:08:04 -08:00
Kconfig net: mvpp2: Remove unneeded Kconfig dependency. 2021-01-23 13:23:35 -08:00
Makefile net: marvell: prestera: Add driver for Prestera family ASIC devices 2020-09-17 16:35:46 -07:00
mv643xx_eth.c net: tso: cache transport header length 2020-06-18 20:46:23 -07:00
mvmdio.c net: mvmdio: avoid error message for optional IRQ 2020-03-17 20:54:37 -07:00
mvneta_bm.c net: mvneta: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:33 -07:00
mvneta_bm.h net: mvneta: make stub functions static inline 2019-10-25 16:21:48 -07:00
mvneta.c net: mvneta: Implement mqprio support 2021-02-16 15:03:26 -08:00
pxa168_eth.c net: pxa168_eth: remove unused variable 'retval' int pxa168_eth_change_mtu() 2020-09-14 13:43:38 -07:00
skge.c net: skge: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
skge.h PCI: Add constant PCI_STATUS_ERROR_BITS 2020-03-04 14:21:00 -08:00
sky2.c drivers: net: sky2: Fix -Wstringop-truncation with W=1 2020-11-11 17:42:24 -08:00
sky2.h PCI: Add constant PCI_STATUS_ERROR_BITS 2020-03-04 14:21:00 -08:00