DORMANTno replies

[patch 2.6.22-rc6] net/usb/cdc_ether minor sparse cleanup

From: David Brownell <hidden>
Date: 2007-07-01 18:48:27

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

Signed-off-by: David Brownell <redacted>
---
 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;
 				}
 			}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help