Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: core: endpoint: 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>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

+1 -2
+1 -2
drivers/usb/core/endpoint.c
··· 50 50 struct device_attribute *attr, char *buf) 51 51 { 52 52 struct ep_device *ep = to_ep_device(dev); 53 - return sprintf(buf, "%04x\n", 54 - usb_endpoint_maxp(ep->desc) & 0x07ff); 53 + return sprintf(buf, "%04x\n", usb_endpoint_maxp(ep->desc)); 55 54 } 56 55 static DEVICE_ATTR_RO(wMaxPacketSize); 57 56