[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181001153202.C727D60C86@smtp.codeaurora.org>
Date: Mon, 1 Oct 2018 15:32:02 +0000 (UTC)
From: Kalle Valo <kvalo@...eaurora.org>
To: Nathan Chancellor <natechancellor@...il.com>
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Nathan Chancellor <natechancellor@...il.com>
Subject: Re: [PATCH] rsi: Remove unnecessary boolean condition
Nathan Chancellor <natechancellor@...il.com> 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 <natechancellor@...il.com>
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
Powered by blists - more mailing lists