lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200707271738.37793.m.kozlowski@tuxland.pl>
Date:	Fri, 27 Jul 2007 17:38:37 +0200
From:	Mariusz Kozlowski <m.kozlowski@...land.pl>
To:	thomas.dahlmann@....com, Andrew Morton <akpm@...ux-foundation.org>
Cc:	info-linux@...de.amd.com, linux-kernel@...r.kernel.org
Subject: [PATCH] usb: remove redundant memset from amd5536udc

Hello,

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

Signed-off-by: Mariusz Kozlowski <m.kozlowski@...land.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@...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

Powered by Openwall GNU/*/Linux Powered by OpenVZ