mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
ethernet/broadcom:remove unneeded variable: "ret"
remove unneeded variable: "ret". Signed-off-by: dingsenjie <dingsenjie@yulong.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db2f2842e6
commit
f0744a84f3
1 changed files with 1 additions and 2 deletions
|
@ -1395,7 +1395,6 @@ int bnx2x_send_final_clnup(struct bnx2x *bp, u8 clnup_func, u32 poll_cnt)
|
||||||
u32 op_gen_command = 0;
|
u32 op_gen_command = 0;
|
||||||
u32 comp_addr = BAR_CSTRORM_INTMEM +
|
u32 comp_addr = BAR_CSTRORM_INTMEM +
|
||||||
CSTORM_FINAL_CLEANUP_COMPLETE_OFFSET(clnup_func);
|
CSTORM_FINAL_CLEANUP_COMPLETE_OFFSET(clnup_func);
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
if (REG_RD(bp, comp_addr)) {
|
if (REG_RD(bp, comp_addr)) {
|
||||||
BNX2X_ERR("Cleanup complete was not 0 before sending\n");
|
BNX2X_ERR("Cleanup complete was not 0 before sending\n");
|
||||||
|
@ -1420,7 +1419,7 @@ int bnx2x_send_final_clnup(struct bnx2x *bp, u8 clnup_func, u32 poll_cnt)
|
||||||
/* Zero completion for next FLR */
|
/* Zero completion for next FLR */
|
||||||
REG_WR(bp, comp_addr, 0);
|
REG_WR(bp, comp_addr, 0);
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 bnx2x_is_pcie_pending(struct pci_dev *dev)
|
u8 bnx2x_is_pcie_pending(struct pci_dev *dev)
|
||||||
|
|
Loading…
Reference in a new issue