]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:46:11 +0000 (10:46 +0200)
BugLink: http://bugs.launchpad.net/bugs/1691369
commit 04fa3e680b4dd2fdd11d0152fb9b6067e7aac140 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/wireless/intel/iwlwifi/pcie/internal.h

index cac6d99012b308803b2a0ce08cd21718a06de864..e3cede9797512e8e4cd116260c414159637c36e5 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;