Skip to content

Commit 3cd8649

Browse files
passgatmarckleinebudde
authored andcommitted
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]>
1 parent 50f2944 commit 3cd8649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/can/slcan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static int slc_open(struct net_device *dev)
413413
if (sl->tty == NULL)
414414
return -ENODEV;
415415

416-
sl->flags &= (1 << SLF_INUSE);
416+
sl->flags &= BIT(SLF_INUSE);
417417
netif_start_queue(dev);
418418
return 0;
419419
}

0 commit comments

Comments
 (0)