Commit 7d05ad5e authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

iwlegacy: avoid warning about missing braces

commit 2cce76c3 upstream.

gcc-6 warns about code in il3945_hw_txq_ctx_free() being
somewhat ambiguous:

drivers/net/wireless/intel/iwlegacy/3945.c:1022:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]

This adds a set of curly braces to avoid the warning.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b25405d9
...@@ -1019,12 +1019,13 @@ il3945_hw_txq_ctx_free(struct il_priv *il) ...@@ -1019,12 +1019,13 @@ il3945_hw_txq_ctx_free(struct il_priv *il)
int txq_id; int txq_id;
/* Tx queues */ /* Tx queues */
if (il->txq) if (il->txq) {
for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++)
if (txq_id == IL39_CMD_QUEUE_NUM) if (txq_id == IL39_CMD_QUEUE_NUM)
il_cmd_queue_free(il); il_cmd_queue_free(il);
else else
il_tx_queue_free(il, txq_id); il_tx_queue_free(il, txq_id);
}
/* free tx queue structure */ /* free tx queue structure */
il_free_txq_mem(il); il_free_txq_mem(il);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment