]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ax88796c: use bit numbers insetad of bit masks
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 16 Nov 2021 21:29:15 +0000 (22:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2021 14:51:40 +0000 (14:51 +0000)
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>
drivers/net/ethernet/asix/ax88796c_main.h

index 80263c3cef7575f650187432c13f358e1cc6198c..4a83c991dcbedc3e7a65660b2e1e456a2f4c4519 100644 (file)
@@ -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
 
 };