summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2021-11-16 22:29:15 +0100
committerDavid S. Miller <davem@davemloft.net>2021-11-17 14:51:40 +0000
commitc366ce28750e9633f8d4b07829a9cde0e59034eb (patch)
treec68e30b2c51340b66d688d8720935ea06d18bbc2 /drivers
parentcf9acc90c80ecbee00334aa85d92f4e74014bcff (diff)
downloadlinux-c366ce28750e9633f8d4b07829a9cde0e59034eb.tar.bz2
net: ax88796c: use bit numbers insetad of bit masks
Change the values of EVENT_* constants from bit masks to bit numbers as accepted by {clear,set,test}_bit() functions. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/asix/ax88796c_main.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/asix/ax88796c_main.h b/drivers/net/ethernet/asix/ax88796c_main.h
index 80263c3cef75..4a83c991dcbe 100644
--- a/drivers/net/ethernet/asix/ax88796c_main.h
+++ b/drivers/net/ethernet/asix/ax88796c_main.h
@@ -127,9 +127,9 @@ struct ax88796c_device {
#define AX_PRIV_FLAGS_MASK (AX_CAP_COMP)
unsigned long flags;
- #define EVENT_INTR BIT(0)
- #define EVENT_TX BIT(1)
- #define EVENT_SET_MULTI BIT(2)
+ #define EVENT_INTR 0
+ #define EVENT_TX 1
+ #define EVENT_SET_MULTI 2
};