Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging/qlge: add braces to conditional statement

This patch fixes "CHECK: braces {} should be used on all arms of this
statement" by checkpatch.pl.

Signed-off-by: Dorothea Ehrl <dorothea.ehrl@fau.de>
Co-developed-by: Vanessa Hack <vanessa.hack@fau.de>
Signed-off-by: Vanessa Hack <vanessa.hack@fau.de>
Link: https://lore.kernel.org/r/20191127123052.16424-3-dorothea.ehrl@fau.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dorothea Ehrl and committed by
Greg Kroah-Hartman
2d060684 d00208b6

+4 -2
+4 -2
drivers/staging/qlge/qlge_main.c
··· 178 178 "register 0x%.08x access error, value = 0x%.08x!.\n", 179 179 reg, temp); 180 180 return -EIO; 181 - } else if (temp & bit) 181 + } else if (temp & bit) { 182 182 return 0; 183 + } 183 184 udelay(UDELAY_DELAY); 184 185 } 185 186 netif_alert(qdev, probe, qdev->ndev, ··· 3732 3731 3733 3732 /* Wait for the NIC and MGMNT FIFOs to empty. */ 3734 3733 ql_wait_fifo_empty(qdev); 3735 - } else 3734 + } else { 3736 3735 clear_bit(QL_ASIC_RECOVERY, &qdev->flags); 3736 + } 3737 3737 3738 3738 ql_write32(qdev, RST_FO, (RST_FO_FR << 16) | RST_FO_FR); 3739 3739