Skip to content

Commit

Permalink
can: softing: softing_card_shutdown(): add braces around empty body i…
Browse files Browse the repository at this point in the history
…n 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: 03fd3cf ("can: add driver for Softing card")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Oct 6, 2020
1 parent 80ede64 commit 47fa033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/can/softing/softing_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 47fa033

Please sign in to comment.