From: Cyril Roelandt Date: Sun, 2 Dec 2012 02:40:22 +0000 (+0100) Subject: staging: vt6656: remove a useless call to memset(). X-Git-Tag: upstream/snapshot3+hdmi~5696^2~584 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4d8bcd945c92c7da4b05f93c060e38b559065f0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: vt6656: remove a useless call to memset(). This call is followed by a call to memcpy() on the same memory area, so it can be safely removed. Signed-off-by: Cyril Roelandt Acked-by: Marcos Paulo de Souza Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/bssdb.c b/drivers/staging/vt6656/bssdb.c index 539bc1d..d1757cf 100644 --- a/drivers/staging/vt6656/bssdb.c +++ b/drivers/staging/vt6656/bssdb.c @@ -240,7 +240,6 @@ pDevice->bSameBSSMaxNum = jj; pSelect->bSelected = TRUE; if (pDevice->bRoaming == FALSE) { // Einsn Add @20070907 - memset(pbyDesireSSID, 0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); memcpy(pbyDesireSSID,pCurrBSS->abySSID,WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1) ; }