Commit 2d060684 authored by Dorothea Ehrl's avatar Dorothea Ehrl Committed by Greg Kroah-Hartman

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: default avatarDorothea Ehrl <dorothea.ehrl@fau.de>
Co-developed-by: default avatarVanessa Hack <vanessa.hack@fau.de>
Signed-off-by: default avatarVanessa Hack <vanessa.hack@fau.de>
Link: https://lore.kernel.org/r/20191127123052.16424-3-dorothea.ehrl@fau.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d00208b6
...@@ -178,8 +178,9 @@ int ql_wait_reg_rdy(struct ql_adapter *qdev, u32 reg, u32 bit, u32 err_bit) ...@@ -178,8 +178,9 @@ int ql_wait_reg_rdy(struct ql_adapter *qdev, u32 reg, u32 bit, u32 err_bit)
"register 0x%.08x access error, value = 0x%.08x!.\n", "register 0x%.08x access error, value = 0x%.08x!.\n",
reg, temp); reg, temp);
return -EIO; return -EIO;
} else if (temp & bit) } else if (temp & bit) {
return 0; return 0;
}
udelay(UDELAY_DELAY); udelay(UDELAY_DELAY);
} }
netif_alert(qdev, probe, qdev->ndev, netif_alert(qdev, probe, qdev->ndev,
...@@ -3731,8 +3732,9 @@ static int ql_adapter_reset(struct ql_adapter *qdev) ...@@ -3731,8 +3732,9 @@ static int ql_adapter_reset(struct ql_adapter *qdev)
/* Wait for the NIC and MGMNT FIFOs to empty. */ /* Wait for the NIC and MGMNT FIFOs to empty. */
ql_wait_fifo_empty(qdev); ql_wait_fifo_empty(qdev);
} else } else {
clear_bit(QL_ASIC_RECOVERY, &qdev->flags); clear_bit(QL_ASIC_RECOVERY, &qdev->flags);
}
ql_write32(qdev, RST_FO, (RST_FO_FR << 16) | RST_FO_FR); ql_write32(qdev, RST_FO, (RST_FO_FR << 16) | RST_FO_FR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment