staging: wilc1000: remove duplicate null check routine
authorLeo Kim <leo.kim@atmel.com>
Tue, 13 Oct 2015 10:49:39 +0000 (19:49 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 16:55:08 +0000 (09:55 -0700)
This patch removes the duplicate null check routine. The same null check
routine is twice executed. Therefore the duplicated routine is not necessary.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index b7eb272..1e2a4ec 100644 (file)
@@ -957,11 +957,6 @@ ERRORHANDLER:
                pstrHostIFscanAttr->strHiddenNetwork.pstrHiddenNetworkInfo = NULL;
        }
 
-       if (pstrHostIFscanAttr->pu8ChnlFreqList != NULL) {
-               kfree(pstrHostIFscanAttr->pu8ChnlFreqList);
-               pstrHostIFscanAttr->pu8ChnlFreqList = NULL;
-       }
-
        if (pu8HdnNtwrksWidVal != NULL)
                kfree(pu8HdnNtwrksWidVal);