提交 afaee82c 编写于 作者: D David Brownell 提交者: Jeff Garzik

net/usb/cdc_ether minor sparse cleanup

Remove an "sparse" warning about a shadowed variable name.
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 2d1a3bbd
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册