bnx2x: remove redundant commands during error handling
authorDmitry Kravkov <dmitry@broadcom.com>
Sun, 17 Oct 2010 23:05:09 +0000 (23:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2010 13:51:57 +0000 (06:51 -0700)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_cmn.c

index cb2a3d6..b037dd2 100644 (file)
@@ -1289,8 +1289,6 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
        if (rc) {
                BNX2X_ERR("HW init failed, aborting\n");
                bnx2x_fw_command(bp, DRV_MSG_CODE_LOAD_DONE, 0);
-               bnx2x_fw_command(bp, DRV_MSG_CODE_UNLOAD_REQ_WOL_MCP, 0);
-               bnx2x_fw_command(bp, DRV_MSG_CODE_UNLOAD_DONE, 0);
                goto load_error2;
        }