Re: [PATCH] iwlegacy: avoid warning about missing braces

From: Stanislaw Gruszka
Date: Thu May 19 2016 - 08:41:05 EST


On Thu, May 19, 2016 at 09:58:49AM +0200, Arnd Bergmann wrote:
> 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@xxxxxxxx>

Acked-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>