From b4030fabe6e34ecbce8b3d85b6ed482d93f9bbec Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Tue, 16 Dec 2025 18:41:17 -0600 Subject: [PATCH] usb: Fix checkpatch warning about unnecessary parenthesis Checkpatch was warning about unnecessary parenthesis in the change to the ZLP handling, but Github apparently doesn't highlight warnings. Fix this to avoid leaving the building with broken windows. Fixes: b9ad4ceaf890 ("firehose/usb: Explicitly handle ZLP on USB read transfers") Signed-off-by: Bjorn Andersson --- usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb.c b/usb.c index 93448a2..2c24ecb 100644 --- a/usb.c +++ b/usb.c @@ -245,7 +245,7 @@ static int usb_read(struct qdl_device *qdl, void *buf, size_t len, unsigned int return -ETIMEDOUT; /* If what we read equals the endpoint's Max Packet Size, consume the ZLP explicitly */ - if ((len == actual) && !(actual % qdl_usb->in_maxpktsize)) { + if (len == actual && !(actual % qdl_usb->in_maxpktsize)) { ret = libusb_bulk_transfer(qdl_usb->usb_handle, qdl_usb->in_ep, NULL, 0, NULL, timeout); if (ret)