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 cb2a3d625ad113de4673ad58dbed3d2325a949f3..b037dd2db8e5f81430f3cc6fc9488f4531d857d6 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;
        }