mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
staging: ft1000: Use memset instead looping with for.
Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4d26d7e6ba
commit
eb21c1587a
@ -874,10 +874,7 @@ u16 init_ft1000_netdev(struct ft1000_device *ft1000dev)
|
||||
pInfo->fCondResetPend = 0;
|
||||
pInfo->usbboot = 0;
|
||||
pInfo->dspalive = 0;
|
||||
for (i=0;i<32 ;i++ )
|
||||
{
|
||||
pInfo->tempbuf[i] = 0;
|
||||
}
|
||||
memset(&pInfo->tempbuf[0], 0, sizeof(pInfo->tempbuf));
|
||||
|
||||
INIT_LIST_HEAD(&pInfo->prov_list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user