Skip to content

Commit

Permalink
staging: vt6656: remove a useless call to memset().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyril Roelandt authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent fe5d00e commit d4d8bcd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/vt6656/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;
}

Expand Down

0 comments on commit d4d8bcd

Please sign in to comment.