aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Binacchi <[email protected]>2022-06-28 18:31:25 +0200
committerMarc Kleine-Budde <[email protected]>2022-07-03 11:34:13 +0200
commit3cd864901bc5d5aa2bd38533dcd63d2bf2387030 (patch)
tree0136f03c3a28bcf7ab89ac86a0a26c273bbf2484
parent50f2944009a25bb39a09f2f7bab64a73ce928bef (diff)
can: slcan: use the BIT() helper
Use the BIT() helper instead of an explicit shift. Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Dario Binacchi <[email protected]> Tested-by: Jeroen Hofstee <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
-rw-r--r--drivers/net/can/slcan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c
index 64a3aee8a7da..b37d35c2a23a 100644
--- a/drivers/net/can/slcan.c
+++ b/drivers/net/can/slcan.c
@@ -413,7 +413,7 @@ static int slc_open(struct net_device *dev)
if (sl->tty == NULL)
return -ENODEV;
- sl->flags &= (1 << SLF_INUSE);
+ sl->flags &= BIT(SLF_INUSE);
netif_start_queue(dev);
return 0;
}