summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>2015-08-20 09:59:44 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-12 18:24:30 -0700
commit3a79a7f7135ab724bce5979963a9e3e5be4c8908 (patch)
tree08258406b4deee67e0bf7ab019896a054f197d39
parente5d57e917a8c7ff1da10a568eb738a6ac5697dae (diff)
downloadlinux-stable-3a79a7f7135ab724bce5979963a9e3e5be4c8908.tar.gz
linux-stable-3a79a7f7135ab724bce5979963a9e3e5be4c8908.tar.bz2
linux-stable-3a79a7f7135ab724bce5979963a9e3e5be4c8908.zip
staging: wilc1000: simplify 'memset' of 2D array
This patch simplifies the 'memset' done on a static 2D array. Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wilc1000/host_interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 0506d6dbb857..17fa2997b1e7 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -1493,8 +1493,7 @@ static s32 Handle_Connect(tstrWILC_WFIDrv *drvHandler, tstrHostIFconnectAttr *ps
PRINT_D(GENERIC_DBG, "Handling connect request\n");
#ifndef CONNECT_DIRECT
- memset(gapu8RcvdSurveyResults[0], 0, MAX_SURVEY_RESULT_FRAG_SIZE);
- memset(gapu8RcvdSurveyResults[1], 0, MAX_SURVEY_RESULT_FRAG_SIZE);
+ memset(gapu8RcvdSurveyResults, 0, sizeof(gapu8RcvdSurveyResults));
PRINT_D(HOSTINF_DBG, "Getting site survey results\n");