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>
This commit is contained in:
Łukasz Stelmach 2021-11-16 22:29:15 +01:00 committed by David S. Miller
parent cf9acc90c8
commit c366ce2875
1 changed files with 3 additions and 3 deletions

View 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
};