]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iwlegacy: avoid warning about missing braces
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 May 2016 07:58:49 +0000 (09:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:09:41 +0000 (10:09 +0200)
commit7d05ad5e34adaeffe0a435ddcc98a9b2031d1cc4
tree42e92cc6dd4d3a775cfc796ca64b4089bcf81c8c
parentb25405d92f69c05e2977b861186e83c9cd04f7c0
iwlegacy: avoid warning about missing braces

commit 2cce76c3fab410520610a7d2f52faebc3cfcf843 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: Arnd Bergmann <arnd@arndb.de>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlegacy/3945.c