aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-10-28 10:50:55 -0400
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-10-29 09:51:50 -0400
commitbcbb8c9c7d42e012d8f73dfcccfcc56d5c8da431 (patch)
tree05293562d66bcd5cd01c69f51f6b5074d3e90f88 /drivers/net
parent22cba0c0852f558e742648a0d556aa9592748893 (diff)
iwlwifi: pcie: move warning message into warning
Having a WARN_ON() followed by a printed message is less useful than having the message in the warning so move the message. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/tx.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c
index b4168415538c..cc184402b88a 100644
--- a/drivers/net/wireless/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/iwlwifi/pcie/tx.c
@@ -1495,12 +1495,11 @@ static int iwl_pcie_send_hcmd_sync(struct iwl_trans *trans,
1495 IWL_DEBUG_INFO(trans, "Attempting to send sync command %s\n", 1495 IWL_DEBUG_INFO(trans, "Attempting to send sync command %s\n",
1496 get_cmd_string(trans_pcie, cmd->id)); 1496 get_cmd_string(trans_pcie, cmd->id));
1497 1497
1498 if (WARN_ON(test_and_set_bit(STATUS_HCMD_ACTIVE, 1498 if (WARN(test_and_set_bit(STATUS_HCMD_ACTIVE,
1499 &trans_pcie->status))) { 1499 &trans_pcie->status),
1500 IWL_ERR(trans, "Command %s: a command is already active!\n", 1500 "Command %s: a command is already active!\n",
1501 get_cmd_string(trans_pcie, cmd->id)); 1501 get_cmd_string(trans_pcie, cmd->id)))
1502 return -EIO; 1502 return -EIO;
1503 }
1504 1503
1505 IWL_DEBUG_INFO(trans, "Setting HCMD_ACTIVE for command %s\n", 1504 IWL_DEBUG_INFO(trans, "Setting HCMD_ACTIVE for command %s\n",
1506 get_cmd_string(trans_pcie, cmd->id)); 1505 get_cmd_string(trans_pcie, cmd->id));