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  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]
Date:	Sun, 1 Jul 2007 11:47:59 -0700
From:	David Brownell <david-b@...bell.net>
To:	Network development list <netdev@...r.kernel.org>
Subject: [patch 2.6.22-rc6] net/usb/cdc_ether minor sparse cleanup

Remove an "sparse" warning about a shadowed variable name.

Signed-off-by: David Brownell <dbrownell@...rs.sourceforge.net>
---
 drivers/net/usb/cdc_ether.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- g26.orig/drivers/net/usb/cdc_ether.c	2007-07-01 11:40:37.000000000 -0700
+++ g26/drivers/net/usb/cdc_ether.c	2007-07-01 11:40:48.000000000 -0700
@@ -144,14 +144,14 @@ int usbnet_generic_cdc_bind(struct usbne
 			 * modem interface from an RNDIS non-modem.
 			 */
 			if (rndis) {
-				struct usb_cdc_acm_descriptor *d;
+				struct usb_cdc_acm_descriptor *acm;
 
-				d = (void *) buf;
-				if (d->bmCapabilities) {
+				acm = (void *) buf;
+				if (acm->bmCapabilities) {
 					dev_dbg(&intf->dev,
 						"ACM capabilities %02x, "
 						"not really RNDIS?\n",
-						d->bmCapabilities);
+						acm->bmCapabilities);
 					goto bad_desc;
 				}
 			}
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists