lkml.org 
[lkml]   [2020]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] rtlwifi: remove comparison of 0/1 to bool variable
From
Date
Jason Yan <yanaijie@huawei.com> wrote:

> The variable 'rtlpriv->rfkill.rfkill_state' is bool and can directly
> assigned to bool values.
>
> Fix the following coccicheck warning:
>
> drivers/net/wireless/realtek/rtlwifi/core.c:1725:14-42: WARNING:
> Comparison of 0/1 to bool variable
>
> Signed-off-by: Jason Yan <yanaijie@huawei.com>

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

1b56bed20212 rtlwifi: remove comparison of 0/1 to bool variable

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

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

\
 
 \ /
  Last update: 2020-05-06 10:44    [W:0.093 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site