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 <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
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;