Messages in this thread | | | Subject | Re: [PATCH 1/4] Staging: rtl8723au: Bool tests don't need comparisons | From | Joe Perches <> | Date | Fri, 11 Sep 2015 23:27:34 -0700 |
| |
On Sat, 2015-09-12 at 11:19 +0530, Shraddha Barke wrote: > This patch removes comparisons to true/false values on bool variables. > Fixed using Coccinelle
Please do the "== false" and "!= false" cases at the same time or in another patch.
> diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c [] > @@ -409,7 +409,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l > > arg |= BIT(7);/* support entry 2~31 */ > > - if (shortGIrate == true) > + if (shortGIrate) > arg |= BIT(5); > > tx_ra_bitmap |= ((raid<<28)&0xf0000000);
| |