diff options
author | David Brownell <david-b@pacbell.net> | 2007-07-01 20:47:59 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-02 14:24:52 +0200 |
commit | afaee82c0aef7c2b30acff129c723031343e10c2 (patch) | |
tree | 582eb21f5e5ff8617debf0c747da19add49149b6 /drivers/net/usb/cdc_ether.c | |
parent | RESEND [PATCH 2/3] NetXen: Support per PCI-function interrupt mask registers (diff) | |
download | linux-afaee82c0aef7c2b30acff129c723031343e10c2.tar.xz linux-afaee82c0aef7c2b30acff129c723031343e10c2.zip |
net/usb/cdc_ether minor sparse cleanup
Remove an "sparse" warning about a shadowed variable name.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/usb/cdc_ether.c')
-rw-r--r-- | drivers/net/usb/cdc_ether.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 675ac99a79c6..a42acc3cc609 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c @@ -144,14 +144,14 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) * 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; } } |