staging: wilc1000: simplify 'memset' of 2D array
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Thu, 20 Aug 2015 09:59:44 +0000 (09:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:30 +0000 (18:24 -0700)
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>
drivers/staging/wilc1000/host_interface.c

index 0506d6dbb8579f8c8e5dd0f3ac7564b89a8674fb..17fa2997b1e746e703b9f9ed35fa11e4cc835b15 100644 (file)
@@ -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");
This page took 0.027131 seconds and 5 git commands to generate.