summaryrefslogtreecommitdiffstats
path: root/drivers/net/wwan/wwan_core.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2021-04-20 21:09:57 +0200
committerDavid S. Miller <davem@davemloft.net>2021-04-20 16:52:56 -0700
commitb8c55ce266dee09b0e359ff9af885eb94e11480a (patch)
tree08d8c11824022a9d02b85ec317f590163c0c2fa6 /drivers/net/wwan/wwan_core.c
parentebbcac3dc26b51d8eeaa228cc2a969cfe4cc5bb3 (diff)
downloadlinux-b8c55ce266dee09b0e359ff9af885eb94e11480a.tar.bz2
net: wwan: Fix bit ops double shift
bit operation helpers such as test_bit, clear_bit, etc take bit position as parameter and not value. Current usage causes double shift => BIT(BIT(0)). Fix that in wwan_core and mhi_wwan_ctrl. Fixes: 9a44c1cc6388 ("net: Add a WWAN subsystem") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Loic Poulain <loic.poulain@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/wwan_core.c')
-rw-r--r--drivers/net/wwan/wwan_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c
index b618b7937846..5be5e1e3534c 100644
--- a/drivers/net/wwan/wwan_core.c
+++ b/drivers/net/wwan/wwan_core.c
@@ -26,7 +26,7 @@ static int wwan_major;
#define to_wwan_port(d) container_of(d, struct wwan_port, dev)
/* WWAN port flags */
-#define WWAN_PORT_TX_OFF BIT(0)
+#define WWAN_PORT_TX_OFF 0
/**
* struct wwan_device - The structure that defines a WWAN device