2015-07-08 08:41:53

by David Binderman

[permalink] [raw]
Subject: linux-4.2-rc1/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c:2183: bad expression ?

Hello there,

[linux-4.2-rc1/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c:2183]: (style) Expression '(X & 0xfc) == 0x3' is always false.

Source code is

?? if ((bt_msr & 0xfc) == MSR_AP)

Regards

David Binderman



2015-07-08 15:19:40

by Larry Finger

[permalink] [raw]
Subject: Re: linux-4.2-rc1/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c:2183: bad expression ?

On 07/08/2015 03:41 AM, David Binderman wrote:
> Hello there,
>
> [linux-4.2-rc1/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c:2183]: (style) Expression '(X & 0xfc) == 0x3' is always false.
>
> Source code is
>
> if ((bt_msr & 0xfc) == MSR_AP)

Thanks for the report. A fix was just submitted listing you as the Reporter.

Larry