Skip to content

Commit

Permalink
staging: ft1000: Use memset instead looping with for.
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Nov 10, 2010
1 parent 4d26d7e commit eb21c15
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit eb21c15

Please sign in to comment.