mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
staging: wilc1000: remove unnecessary NULL check in clear_shadow_scan()
Cleanup patch to remove the unnecessary NULL check before freeing up ies information in clear_shadow_scan(). Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
19707ca295
commit
009324daf6
1 changed files with 2 additions and 4 deletions
|
@ -165,10 +165,8 @@ static void clear_shadow_scan(void)
|
|||
return;
|
||||
|
||||
for (i = 0; i < last_scanned_cnt; i++) {
|
||||
if (last_scanned_shadow[i].ies) {
|
||||
kfree(last_scanned_shadow[i].ies);
|
||||
last_scanned_shadow[i].ies = NULL;
|
||||
}
|
||||
kfree(last_scanned_shadow[i].ies);
|
||||
last_scanned_shadow[i].ies = NULL;
|
||||
|
||||
kfree(last_scanned_shadow[i].join_params);
|
||||
last_scanned_shadow[i].join_params = NULL;
|
||||
|
|
Loading…
Reference in a new issue