aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/core
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-04-13 16:46:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-18 13:54:25 +0200
commitd9c7dd5db1d0f6f212072625781dddbbe6e253d7 (patch)
tree22e6d17c85f168970a835afc2806d8c6241527ab /drivers/staging/rtl8723bs/core
parentstaging: rtl8723bs: remove redundant comparisons of unsigned ints with >= 0 (diff)
downloadlinux-dev-d9c7dd5db1d0f6f212072625781dddbbe6e253d7.tar.xz
linux-dev-d9c7dd5db1d0f6f212072625781dddbbe6e253d7.zip
staging: rtl8723bs: clean up identical code on an if statement
The two different paths for an if statement are identical and hence we can just replace it with the single statement. Detected by CoverityScan, CID#1428443 ("Identical code for different branches") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/core')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_mlme.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index 53755e5b97a6..9e355734f0c0 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -1093,11 +1093,7 @@ void rtw_free_assoc_resources(struct adapter *adapter, int lock_scanned_queue)
rtw_init_bcmc_stainfo(adapter);
}
- if (lock_scanned_queue) {
- find_network(adapter);
- } else {
- find_network(adapter);
- }
+ find_network(adapter);
if (lock_scanned_queue)
adapter->securitypriv.key_mask = 0;