[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200709121856.05742.jesper.juhl@gmail.com>
Date: Wed, 12 Sep 2007 18:56:05 +0200
From: Jesper Juhl <jesper.juhl@...il.com>
To: Thomas Dahlmann <thomas.dahlmann@....com>
Cc: info-linux@...de.amd.com,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [PATCH] AMD 5536 UDC - Remove unneeded memset()
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@...il.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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists