]>
Commit | Line | Data |
---|---|---|
b74db2ac GKH |
1 | From 04fa3e680b4dd2fdd11d0152fb9b6067e7aac140 Mon Sep 17 00:00:00 2001 |
2 | From: Emmanuel Grumbach <emmanuel.grumbach@intel.com> | |
3 | Date: Sat, 7 Jan 2017 20:11:47 +0200 | |
4 | Subject: iwlwifi: pcie: don't increment / decrement a bool | |
5 | ||
6 | From: Emmanuel Grumbach <emmanuel.grumbach@intel.com> | |
7 | ||
8 | commit 04fa3e680b4dd2fdd11d0152fb9b6067e7aac140 upstream. | |
9 | ||
10 | David reported that the code I added uses the decrement | |
11 | and increment operator on a boolean variable. | |
12 | ||
13 | Fix that. | |
14 | ||
15 | Fixes: 0cd58eaab148 ("iwlwifi: pcie: allow the op_mode to block the tx queues") | |
16 | Reported-by: David Binderman <dcb314@hotmail.com> | |
17 | Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> | |
18 | Signed-off-by: Luca Coelho <luciano.coelho@intel.com> | |
19 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
20 | ||
21 | --- | |
22 | drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 2 +- | |
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
24 | ||
25 | --- a/drivers/net/wireless/intel/iwlwifi/pcie/internal.h | |
26 | +++ b/drivers/net/wireless/intel/iwlwifi/pcie/internal.h | |
27 | @@ -279,7 +279,7 @@ struct iwl_txq { | |
28 | bool frozen; | |
29 | u8 active; | |
30 | bool ampdu; | |
31 | - bool block; | |
32 | + int block; | |
33 | unsigned long wd_timeout; | |
34 | struct sk_buff_head overflow_q; | |
35 |