mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] staging: ozwpan: Remove memset
@ 2013-08-23 15:11 Rupesh Gujare
  2013-08-23 15:11 ` [PATCH 2/3] staging: ozwpan: Fix wrong error check Rupesh Gujare
  2013-08-23 15:11 ` [PATCH 3/3] staging: ozwpan: Fix Documentation style Rupesh Gujare
  0 siblings, 2 replies; 3+ messages in thread
From: Rupesh Gujare @ 2013-08-23 15:11 UTC (permalink / raw)
  To: devel; +Cc: sergei.shtylyov, dan.carpenter, linux-usb, linux-kernel, gregkh

As we are initialising structure, we do not require
memset().

Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
---
 drivers/staging/ozwpan/ozpd.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c
index 06004c8..5d24af3 100644
--- a/drivers/staging/ozwpan/ozpd.c
+++ b/drivers/staging/ozwpan/ozpd.c
@@ -268,7 +268,6 @@ void oz_pd_destroy(struct oz_pd *pd)
 	if (hrtimer_active(&pd->heartbeat))
 		hrtimer_cancel(&pd->heartbeat);
 
-	memset(&pd->workitem, 0, sizeof(pd->workitem));
 	INIT_WORK(&pd->workitem, oz_pd_free);
 	ret = schedule_work(&pd->workitem);
 
-- 
1.7.9.5


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

end of thread, other threads:[~2013-08-23 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23 15:11 [PATCH 1/3] staging: ozwpan: Remove memset Rupesh Gujare
2013-08-23 15:11 ` [PATCH 2/3] staging: ozwpan: Fix wrong error check Rupesh Gujare
2013-08-23 15:11 ` [PATCH 3/3] staging: ozwpan: Fix Documentation style Rupesh Gujare

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®