Skip to content

Commit

Permalink
can: slcan: use the BIT() helper
Browse files Browse the repository at this point in the history
Use the BIT() helper instead of an explicit shift.

Link: https://lore.kernel.org/all/20220628163137.413025-2-dario.binacchi@amarulasolutions.com
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Tested-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Dario Binacchi authored and Marc Kleine-Budde committed Jul 3, 2022
1 parent 50f2944 commit 3cd8649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/slcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3cd8649

Please sign in to comment.