mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] AMD 5536 UDC - Remove unneeded memset()
@ 2007-09-12 16:56 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2007-09-12 16:56 UTC (permalink / raw)
  To: Thomas Dahlmann; +Cc: info-linux, Linux Kernel Mailing List


In drivers/usb/gadget/amd5536udc.c::udc_pci_probe() - 
We allocate storage for 'dev' with kzalloc(), so it is already zero, 
no need for an extra memset().


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 drivers/usb/gadget/amd5536udc.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c
index 714156c..e95ffc9 100644
--- a/drivers/usb/gadget/amd5536udc.c
+++ b/drivers/usb/gadget/amd5536udc.c
@@ -3244,7 +3244,6 @@ static int udc_pci_probe(
 		retval = -ENOMEM;
 		goto finished;
 	}
-	memset(dev, 0, sizeof(struct udc));
 
 	/* pci setup */
 	if (pci_enable_device(pdev) < 0) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-12 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-12 16:56 [PATCH] AMD 5536 UDC - Remove unneeded memset() Jesper Juhl

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

Powered by JetHome