aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-06-10 07:25:22 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-06-13 03:01:07 -0400
commitf609607c009140491dd134f0165d9a8f9f726114 (patch)
tree1e025564ebb259370fbb5fa38acd1aa7aae8d67f /drivers/net/wireless/iwlwifi
parent12af0468734dcef5d123d774f98e284deedd361c (diff)
iwlwifi: turn on a lockdep assertion
CMD_SYNC is zero so the if (cmd->flags & CMD_SYNC) is never true and we never check the assertion. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/lib.c b/drivers/net/wireless/iwlwifi/dvm/lib.c
index cb1ca7a25dd5..76f259283c3a 100644
--- a/drivers/net/wireless/iwlwifi/dvm/lib.c
+++ b/drivers/net/wireless/iwlwifi/dvm/lib.c
@@ -1265,7 +1265,7 @@ int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
1265 * the mutex, this ensures we don't try to send two 1265 * the mutex, this ensures we don't try to send two
1266 * (or more) synchronous commands at a time. 1266 * (or more) synchronous commands at a time.
1267 */ 1267 */
1268 if (cmd->flags & CMD_SYNC) 1268 if (!(cmd->flags & CMD_ASYNC))
1269 lockdep_assert_held(&priv->mutex); 1269 lockdep_assert_held(&priv->mutex);
1270 1270
1271 if (priv->ucode_owner == IWL_OWNERSHIP_TM && 1271 if (priv->ucode_owner == IWL_OWNERSHIP_TM &&