[PATCH] AMD 5536 UDC - Remove unneeded memset()

From: Jesper Juhl
Date: Wed Sep 12 2007 - 12:59:46 EST



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@xxxxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/