提交 3cd86490 编写于 作者: D Dario Binacchi 提交者: Marc Kleine-Budde

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.comSigned-off-by: NDario Binacchi <dario.binacchi@amarulasolutions.com>
Tested-by: NJeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 50f29440
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册