diff options
author | Leo Kim <leo.kim@atmel.com> | 2016-02-04 18:24:06 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 17:34:58 -0800 |
commit | d9fb23d72f3f1f4e2209134ab4c9b40d72b21a20 (patch) | |
tree | 4a0381b8c80e10b88ef84fdb8dd984384a7219e7 /drivers/staging/wilc1000/host_interface.c | |
parent | a41047962ac0530bb275bfb656fbc1e348fad23a (diff) | |
download | op-kernel-dev-d9fb23d72f3f1f4e2209134ab4c9b40d72b21a20.zip op-kernel-dev-d9fb23d72f3f1f4e2209134ab4c9b40d72b21a20.tar.gz |
staging: wilc1000: removes function 'wilc_dealloc_network_info()'
This patch removes function 'wilc_dealloc_network_info()'.
Does not need this function which only free memory.
Therefore, this function is removed and changed directly with kfree.
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/host_interface.c')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 6e0a426..2a1d7e9 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -1410,8 +1410,8 @@ done: pstrRcvdNetworkInfo->buffer = NULL; if (pstrNetworkInfo) { - wilc_dealloc_network_info(pstrNetworkInfo); - pstrNetworkInfo = NULL; + kfree(pstrNetworkInfo->pu8IEs); + kfree(pstrNetworkInfo); } return result; |