mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] staging: ft1000: Use memset instead looping with for.
@ 2010-11-02 12:44 Marek Belisko
  2010-11-02 12:44 ` [PATCH 2/3] staging: ft1000: Remove dead code Marek Belisko
  2010-11-02 12:44 ` [PATCH 3/3] staging: ft1000: Pseudo header handlig improved Marek Belisko
  0 siblings, 2 replies; 3+ messages in thread
From: Marek Belisko @ 2010-11-02 12:44 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Marek Belisko; +Cc: devel, linux-kernel, Marek Belisko

Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
---
 drivers/staging/ft1000/ft1000-usb/ft1000_hw.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
index 5b89ee2..bc6aaf4 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
@@ -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);
 
-- 
1.7.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-02 12:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-02 12:44 [PATCH 1/3] staging: ft1000: Use memset instead looping with for Marek Belisko
2010-11-02 12:44 ` [PATCH 2/3] staging: ft1000: Remove dead code Marek Belisko
2010-11-02 12:44 ` [PATCH 3/3] staging: ft1000: Pseudo header handlig improved Marek Belisko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®