mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
can: softing: softing_card_shutdown(): add braces around empty body in an 'if' statement
This patch fixes the following warning when building the kernel with "W=1":
warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Link: http://lore.kernel.org/r/20201006203748.1750156-3-mkl@pengutronix.de
Fixes: 03fd3cf5a1
("can: add driver for Softing card")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
80ede649ea
commit
47fa0336c1
1 changed files with 2 additions and 1 deletions
|
@ -447,8 +447,9 @@ static void softing_card_shutdown(struct softing *card)
|
|||
{
|
||||
int fw_up = 0;
|
||||
|
||||
if (mutex_lock_interruptible(&card->fw.lock))
|
||||
if (mutex_lock_interruptible(&card->fw.lock)) {
|
||||
/* return -ERESTARTSYS */;
|
||||
}
|
||||
fw_up = card->fw.up;
|
||||
card->fw.up = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue