iwlwifi: fix unused label in iwl_send_cmd_sync
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 10 Nov 2011 14:55:20 +0000 (06:55 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Nov 2011 17:32:55 +0000 (12:32 -0500)
Warning introduced by c847474b7dfdda304d0d8ffcc5a9db546b1cb3e9

iwlwifi: check status before send command

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c

index 09a31dc1476f3b498d30dc9fc1390835552bc9ba..a6d898b52b9f0013311e3db195236d274ca2de26 100644 (file)
@@ -1075,7 +1075,7 @@ cancel:
                trans_pcie->txq[trans->shrd->cmd_queue].meta[cmd_idx].flags &=
                                                        ~CMD_WANT_SKB;
        }
-fail:
+
        if (cmd->reply_page) {
                iwl_free_pages(trans->shrd, cmd->reply_page);
                cmd->reply_page = 0;