can: slcan: use the BIT() helper
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>
This commit is contained in:
parent
50f2944009
commit
3cd864901b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user