mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 00:34:52 +00:00
staging: wilc1000: fix line over 80 char issue in clear_shadow_scan()
Remove 'line over 80 char' issue found by checkpatch.pl script. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0a0e09a2c7
commit
b7a86d650c
1 changed files with 11 additions and 10 deletions
|
@ -173,20 +173,21 @@ static void clear_shadow_scan(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (op_ifcs == 0) {
|
||||
del_timer_sync(&aging_timer);
|
||||
if (op_ifcs != 0)
|
||||
return;
|
||||
|
||||
for (i = 0; i < last_scanned_cnt; i++) {
|
||||
if (last_scanned_shadow[last_scanned_cnt].ies) {
|
||||
kfree(last_scanned_shadow[i].ies);
|
||||
last_scanned_shadow[last_scanned_cnt].ies = NULL;
|
||||
}
|
||||
del_timer_sync(&aging_timer);
|
||||
|
||||
kfree(last_scanned_shadow[i].join_params);
|
||||
last_scanned_shadow[i].join_params = NULL;
|
||||
for (i = 0; i < last_scanned_cnt; i++) {
|
||||
if (last_scanned_shadow[last_scanned_cnt].ies) {
|
||||
kfree(last_scanned_shadow[i].ies);
|
||||
last_scanned_shadow[last_scanned_cnt].ies = NULL;
|
||||
}
|
||||
last_scanned_cnt = 0;
|
||||
|
||||
kfree(last_scanned_shadow[i].join_params);
|
||||
last_scanned_shadow[i].join_params = NULL;
|
||||
}
|
||||
last_scanned_cnt = 0;
|
||||
}
|
||||
|
||||
static u32 get_rssi_avg(struct network_info *network_info)
|
||||
|
|
Loading…
Add table
Reference in a new issue