Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afaee82c authored by David Brownell's avatar David Brownell Committed by Jeff Garzik
Browse files

net/usb/cdc_ether minor sparse cleanup



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

Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 2d1a3bbd
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
				}
			}