iwlwifi: pcie: don't increment / decrement a bool
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sat, 7 Jan 2017 18:11:47 +0000 (20:11 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 8 Feb 2017 15:54:09 +0000 (17:54 +0200)
David reported that the code I added uses the decrement
and increment operator on a boolean variable.

Fix that.

Fixes: 0cd58eaab148 ("iwlwifi: pcie: allow the op_mode to block the tx queues")
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/internal.h

index cf5bda06042cbf5393d0304b4f693111de767327..10937309641a5f097e5232acffca07665adf1316 100644 (file)
@@ -279,7 +279,7 @@ struct iwl_txq {
        bool frozen;
        u8 active;
        bool ampdu;
-       bool block;
+       int block;
        unsigned long wd_timeout;
        struct sk_buff_head overflow_q;