Subject: Re: [PATCH] rsi: Remove unnecessary boolean condition

From: Kalle Valo <[email-masked]>
Date: Mon, 1 Oct 2018 15:32:02 +0000 (UTC)

Nathan Chancellor <[email-masked]> wrote:

> Clang warns that the address of a pointer will always evaluated as true
> in a boolean context.
> 
> drivers/net/wireless/rsi/rsi_91x_mac80211.c:927:50: warning: address of
> array 'key->key' will always evaluate to 'true'
> [-Wpointer-bool-conversion]
>         if (vif->type == NL80211_IFTYPE_STATION && key->key &&
>                                                 ~~ ~~~~~^~~
> 1 warning generated.
> 
> Link: https://github.com/ClangBuiltLinux/linux/issues/136
> Signed-off-by: Nathan Chancellor <[email-masked]>

Patch applied to wireless-drivers-next.git, thanks.

f613e4803dd6 rsi: Remove unnecessary boolean condition

-- 
https://patchwork.kernel.org/patch/10609513/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches