From: Leo Kim Date: Tue, 13 Oct 2015 10:49:39 +0000 (+0900) Subject: staging: wilc1000: remove duplicate null check routine X-Git-Tag: v4.14-rc1~4420^2~787 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97b457d7e2ad76e1ce3950a6c46e4d3cd0e350b2;p=platform%2Fkernel%2Flinux-rpi.git staging: wilc1000: remove duplicate null check routine 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 Signed-off-by: Tony Cho Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index b7eb272..1e2a4ec 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -957,11 +957,6 @@ ERRORHANDLER: pstrHostIFscanAttr->strHiddenNetwork.pstrHiddenNetworkInfo = NULL; } - if (pstrHostIFscanAttr->pu8ChnlFreqList != NULL) { - kfree(pstrHostIFscanAttr->pu8ChnlFreqList); - pstrHostIFscanAttr->pu8ChnlFreqList = NULL; - } - if (pu8HdnNtwrksWidVal != NULL) kfree(pu8HdnNtwrksWidVal);