summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2012-12-02 03:40:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 11:15:27 -0800
commitd4d8bcd945c92c7da4b05f93c060e38b559065f0 (patch)
tree3afc432c15ccaf5621132582361c2c87ecda4404 /drivers/staging/vt6656
parentfe5d00ebd348621ce34bb4982271f7b1c45e6700 (diff)
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 <tipecaml@gmail.com> Acked-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r--drivers/staging/vt6656/bssdb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/bssdb.c b/drivers/staging/vt6656/bssdb.c
index 539bc1dc6c26..d1757cfe5898 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) ;
}