diff mbox series

usb: gadget: uvc: Style fixes in uvc_queue

Message ID 20220613090230.1051414-1-m.grzeschik@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series usb: gadget: uvc: Style fixes in uvc_queue | expand

Commit Message

Michael Grzeschik June 13, 2022, 9:02 a.m. UTC
In Patch "c5d337a3: usb: gadget: uvc: Fix comment blocks style" the
overall comment style was fixed to use a consistent format.

This was missed in the Patch "87d76b5f: usb: gadget: uvc: calculate the
number of request depending on framesize". In this patch, it also missed
to remove the extra parentheses around video->ep->mult. We fix it now.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 drivers/usb/gadget/function/uvc_queue.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/gadget/function/uvc_queue.c b/drivers/usb/gadget/function/uvc_queue.c
index ec500ee499eed1..267474225ee409 100644
--- a/drivers/usb/gadget/function/uvc_queue.c
+++ b/drivers/usb/gadget/function/uvc_queue.c
@@ -56,9 +56,10 @@  static int uvc_queue_setup(struct vb2_queue *vq,
 
 	req_size = video->ep->maxpacket
 		 * max_t(unsigned int, video->ep->maxburst, 1)
-		 * (video->ep->mult);
+		 * video->ep->mult;
 
-	/* We divide by two, to increase the chance to run
+	/*
+	 * We divide by two, to increase the chance to run
 	 * into fewer requests for smaller framesizes.
 	 */
 	nreq = DIV_ROUND_UP(DIV_ROUND_UP(sizes[0], 2), req_size);