summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2015-08-17 11:05:13 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-17 12:50:02 -0700
commit280f1fa0808ea6e3b6bd5b39d67a0bb0a35a6761 (patch)
tree41b0dcc589521a287e2e75cdf5f56ff0adbc9379 /drivers/staging
parentdc0ad74bc432eccb96f3249de20f3b2b468d0919 (diff)
downloadop-kernel-dev-280f1fa0808ea6e3b6bd5b39d67a0bb0a35a6761.zip
op-kernel-dev-280f1fa0808ea6e3b6bd5b39d67a0bb0a35a6761.tar.gz
staging: wilc1000: remove unused codes of gps8ConfigPacket
This patch removes unused codes of gps8ConfigPacket declared by global variable. It is allocated and freed memory within CoreConfiguratorInit and CoreConfiguratorDeInit. There is no used anywhere except within two functions. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/wilc1000/coreconfigurator.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c
index 4e9fc65..2004487 100644
--- a/drivers/staging/wilc1000/coreconfigurator.c
+++ b/drivers/staging/wilc1000/coreconfigurator.c
@@ -167,7 +167,6 @@ extern void host_int_ScanCompleteReceived(u8 *pu8Buffer, u32 u32Length);
static struct semaphore SemHandleSendPkt;
static struct semaphore SemHandlePktResp;
-static s8 *gps8ConfigPacket;
static tstrConfigPktInfo gstrConfigPktInfo;
@@ -674,17 +673,8 @@ s32 CoreConfiguratorInit(void)
sema_init(&SemHandleSendPkt, 1);
sema_init(&SemHandlePktResp, 0);
- gps8ConfigPacket = WILC_MALLOC(MAX_PACKET_BUFF_SIZE);
- if (gps8ConfigPacket == NULL) {
- PRINT_ER("failed in gps8ConfigPacket allocation\n");
- s32Error = WILC_NO_MEM;
- goto _fail_;
- }
-
- memset((void *)gps8ConfigPacket, 0, MAX_PACKET_BUFF_SIZE);
memset((void *)(&gstrConfigPktInfo), 0, sizeof(tstrConfigPktInfo));
-_fail_:
return s32Error;
}
@@ -1954,11 +1944,6 @@ s32 CoreConfiguratorDeInit(void)
PRINT_D(CORECONFIG_DBG, "CoreConfiguratorDeInit()\n");
- if (gps8ConfigPacket != NULL) {
-
- kfree(gps8ConfigPacket);
- gps8ConfigPacket = NULL;
- }
return s32Error;
}
OpenPOWER on IntegriCloud