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:
Dario Binacchi 2022-06-28 18:31:25 +02:00 committed by Marc Kleine-Budde
parent 50f2944009
commit 3cd864901b

View File

@ -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;
}