mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 08:18:47 +00:00
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>
This commit is contained in:
parent
2d1a3bbdf2
commit
afaee82c0a
@ -144,14 +144,14 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
|
|||||||
* modem interface from an RNDIS non-modem.
|
* modem interface from an RNDIS non-modem.
|
||||||
*/
|
*/
|
||||||
if (rndis) {
|
if (rndis) {
|
||||||
struct usb_cdc_acm_descriptor *d;
|
struct usb_cdc_acm_descriptor *acm;
|
||||||
|
|
||||||
d = (void *) buf;
|
acm = (void *) buf;
|
||||||
if (d->bmCapabilities) {
|
if (acm->bmCapabilities) {
|
||||||
dev_dbg(&intf->dev,
|
dev_dbg(&intf->dev,
|
||||||
"ACM capabilities %02x, "
|
"ACM capabilities %02x, "
|
||||||
"not really RNDIS?\n",
|
"not really RNDIS?\n",
|
||||||
d->bmCapabilities);
|
acm->bmCapabilities);
|
||||||
goto bad_desc;
|
goto bad_desc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user