Commit 009324da authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman
Browse files

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: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19707ca2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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].join_params);
		last_scanned_shadow[i].join_params = NULL;