mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
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>
This commit is contained in:
parent
fe5d00ebd3
commit
d4d8bcd945
@ -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) ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user