cdc_ether: trivial whitespace readability fix
This function is unreadable enough without indenting mismatches and unnecessary line breaks. Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eeb2c4fb6a
commit
a29c3c09ba
@ -179,10 +179,8 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
|
|||||||
* probed with) and a slave/data interface; union
|
* probed with) and a slave/data interface; union
|
||||||
* descriptors sort this all out.
|
* descriptors sort this all out.
|
||||||
*/
|
*/
|
||||||
info->control = usb_ifnum_to_if(dev->udev,
|
info->control = usb_ifnum_to_if(dev->udev, info->u->bMasterInterface0);
|
||||||
info->u->bMasterInterface0);
|
info->data = usb_ifnum_to_if(dev->udev, info->u->bSlaveInterface0);
|
||||||
info->data = usb_ifnum_to_if(dev->udev,
|
|
||||||
info->u->bSlaveInterface0);
|
|
||||||
if (!info->control || !info->data) {
|
if (!info->control || !info->data) {
|
||||||
dev_dbg(&intf->dev,
|
dev_dbg(&intf->dev,
|
||||||
"master #%u/%p slave #%u/%p\n",
|
"master #%u/%p slave #%u/%p\n",
|
||||||
@ -216,13 +214,11 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
|
|||||||
/* a data interface altsetting does the real i/o */
|
/* a data interface altsetting does the real i/o */
|
||||||
d = &info->data->cur_altsetting->desc;
|
d = &info->data->cur_altsetting->desc;
|
||||||
if (d->bInterfaceClass != USB_CLASS_CDC_DATA) {
|
if (d->bInterfaceClass != USB_CLASS_CDC_DATA) {
|
||||||
dev_dbg(&intf->dev, "slave class %u\n",
|
dev_dbg(&intf->dev, "slave class %u\n", d->bInterfaceClass);
|
||||||
d->bInterfaceClass);
|
|
||||||
goto bad_desc;
|
goto bad_desc;
|
||||||
}
|
}
|
||||||
skip:
|
skip:
|
||||||
if ( rndis &&
|
if (rndis && header.usb_cdc_acm_descriptor &&
|
||||||
header.usb_cdc_acm_descriptor &&
|
|
||||||
header.usb_cdc_acm_descriptor->bmCapabilities) {
|
header.usb_cdc_acm_descriptor->bmCapabilities) {
|
||||||
dev_dbg(&intf->dev,
|
dev_dbg(&intf->dev,
|
||||||
"ACM capabilities %02x, not really RNDIS?\n",
|
"ACM capabilities %02x, not really RNDIS?\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user