USB: a bit more coding style cleanup
I was sitting in a train threatened to be blocked by ice. I took this as a hint to do some more boring work for the common good. Here's a bit more for coding style. Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9251644ab3
commit
1a68f71d4f
@@ -164,7 +164,7 @@ static const char *class_decode(const int class)
|
|||||||
for (ix = 0; clas_info[ix].class != -1; ix++)
|
for (ix = 0; clas_info[ix].class != -1; ix++)
|
||||||
if (clas_info[ix].class == class)
|
if (clas_info[ix].class == class)
|
||||||
break;
|
break;
|
||||||
return (clas_info[ix].class_name);
|
return clas_info[ix].class_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *usb_dump_endpoint_descriptor(
|
static char *usb_dump_endpoint_descriptor(
|
||||||
@@ -212,9 +212,9 @@ static char *usb_dump_endpoint_descriptor (
|
|||||||
break;
|
break;
|
||||||
case USB_ENDPOINT_XFER_INT:
|
case USB_ENDPOINT_XFER_INT:
|
||||||
type = "Int.";
|
type = "Int.";
|
||||||
if (speed == USB_SPEED_HIGH) {
|
if (speed == USB_SPEED_HIGH)
|
||||||
interval = 1 << (desc->bInterval - 1);
|
interval = 1 << (desc->bInterval - 1);
|
||||||
} else
|
else
|
||||||
interval = desc->bInterval;
|
interval = desc->bInterval;
|
||||||
break;
|
break;
|
||||||
default: /* "can't happen" */
|
default: /* "can't happen" */
|
||||||
|
Reference in New Issue
Block a user