staging: ft1000: Use memset instead looping with for.
authorMarek Belisko <marek.belisko@gmail.com>
Tue, 2 Nov 2010 12:44:08 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:07:01 +0000 (16:07 -0800)
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c

index 5b89ee2..bc6aaf4 100644 (file)
@@ -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);