mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
usb: core: devices: remove unnecessary & operation
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: <linux-usb@vger.kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
63b9e901e4
commit
c091b6b34b
@ -227,7 +227,7 @@ static char *usb_dump_endpoint_descriptor(int speed, char *start, char *end,
|
||||
|
||||
start += sprintf(start, format_endpt, desc->bEndpointAddress, dir,
|
||||
desc->bmAttributes, type,
|
||||
(usb_endpoint_maxp(desc) & 0x07ff) *
|
||||
usb_endpoint_maxp(desc) *
|
||||
bandwidth,
|
||||
interval, unit);
|
||||
return start;
|
||||
|
Loading…
Reference in New Issue
Block a user