diff options
author | Felipe Balbi | 2016-09-28 13:17:38 +0200 |
---|---|---|
committer | Felipe Balbi | 2016-11-03 09:38:22 +0100 |
commit | 670216f4d38bb128aa525450fe6ff9a5b3a2b8b0 (patch) | |
tree | 60cf05da7490692f8f7df182177a77a7b1042551 /drivers/media/usb/uvc/uvc_video.c | |
parent | usb: host: xhci: purge GET_MAX_PACKET() (diff) | |
download | kernel-qcow2-linux-670216f4d38bb128aa525450fe6ff9a5b3a2b8b0.tar.gz kernel-qcow2-linux-670216f4d38bb128aa525450fe6ff9a5b3a2b8b0.tar.xz kernel-qcow2-linux-670216f4d38bb128aa525450fe6ff9a5b3a2b8b0.zip |
media: usb: uvc: 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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: <linux-media@vger.kernel.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/media/usb/uvc/uvc_video.c')
-rw-r--r-- | drivers/media/usb/uvc/uvc_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c index 11e0e5f4e1c2..f3c1c852e401 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -1553,7 +1553,7 @@ static int uvc_init_video_bulk(struct uvc_streaming *stream, u16 psize; u32 size; - psize = usb_endpoint_maxp(&ep->desc) & 0x7ff; + psize = usb_endpoint_maxp(&ep->desc); size = stream->ctrl.dwMaxPayloadTransferSize; stream->bulk.max_payload_size = size; |