lkml.org 
[lkml]   [2007]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] usb: remove redundant memset from amd5536udc
Date
Hello,

This patch removes redundant memset() call
from udc_pci_probe(). No functional change.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>

drivers/usb/gadget/amd5536udc.c | 86768 -> 86731 (-37 bytes)
drivers/usb/gadget/amd5536udc.o | 187342 -> 187066 (-276 bytes)

drivers/usb/gadget/amd5536udc.c | 1 -
1 file changed, 1 deletion(-)

--- linux-2.6.23-rc1-mm1-a/drivers/usb/gadget/amd5536udc.c 2007-07-26 13:07:41.000000000 +0200
+++ linux-2.6.23-rc1-mm1-b/drivers/usb/gadget/amd5536udc.c 2007-07-27 17:25:04.000000000 +0200
@@ -3242,11 +3242,10 @@ static int udc_pci_probe(
dev = kzalloc(sizeof(struct udc), GFP_KERNEL);
if (!dev) {
retval = -ENOMEM;
goto finished;
}
- memset(dev, 0, sizeof(struct udc));

/* pci setup */
if (pci_enable_device(pdev) < 0) {
retval = -ENODEV;
goto finished;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-07-27 17:43    [W:0.838 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site