Skip to content

Commit f0744a8

Browse files
dingsenjiedavem330
authored andcommitted
ethernet/broadcom:remove unneeded variable: "ret"
remove unneeded variable: "ret". Signed-off-by: dingsenjie <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent db2f284 commit f0744a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,6 @@ int bnx2x_send_final_clnup(struct bnx2x *bp, u8 clnup_func, u32 poll_cnt)
13951395
u32 op_gen_command = 0;
13961396
u32 comp_addr = BAR_CSTRORM_INTMEM +
13971397
CSTORM_FINAL_CLEANUP_COMPLETE_OFFSET(clnup_func);
1398-
int ret = 0;
13991398

14001399
if (REG_RD(bp, comp_addr)) {
14011400
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)
14201419
/* Zero completion for next FLR */
14211420
REG_WR(bp, comp_addr, 0);
14221421

1423-
return ret;
1422+
return 0;
14241423
}
14251424

14261425
u8 bnx2x_is_pcie_pending(struct pci_dev *dev)

0 commit comments

Comments
 (0)