diff options
author | Roberta Dobrescu <roberta.dobrescu@gmail.com> | 2014-10-26 23:30:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-27 18:45:03 +0800 |
commit | 08551cbb176afa0d71d4a059b2893c6575e8a8ad (patch) | |
tree | a3e02394d791f801dc7bc3dc66f5366bcce0cda4 /drivers/staging/rtl8723au/core/rtw_ap.c | |
parent | Staging: rtl8723au: core: Add braces around macro (diff) | |
download | linux-dev-08551cbb176afa0d71d4a059b2893c6575e8a8ad.tar.xz linux-dev-08551cbb176afa0d71d4a059b2893c6575e8a8ad.zip |
staging: rtl8723au: Do not use comparisons on bool tests
This patch removes unnecessary comparisons to bool.
It fixes the following warning detected using coccinelle tool:
WARNING: Comparison to bool.
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723au/core/rtw_ap.c')
-rw-r--r-- | drivers/staging/rtl8723au/core/rtw_ap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c index 6a336cd2eb4d..d00255fbfcbc 100644 --- a/drivers/staging/rtl8723au/core/rtw_ap.c +++ b/drivers/staging/rtl8723au/core/rtw_ap.c @@ -1605,7 +1605,7 @@ u8 ap_free_sta23a(struct rtw_adapter *padapter, struct sta_info *psta, bool acti if (!psta) return beacon_updated; - if (active == true) { + if (active) { /* tear down Rx AMPDU */ send_delba23a(padapter, 0, psta->hwaddr);/* recipient */ |