Skip to content

Commit b4030fa

Browse files
quic-bjorandeandersson
authored andcommitted
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: b9ad4ce ("firehose/usb: Explicitly handle ZLP on USB read transfers") Signed-off-by: Bjorn Andersson <[email protected]>
1 parent a10cf7f commit b4030fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static int usb_read(struct qdl_device *qdl, void *buf, size_t len, unsigned int
245245
return -ETIMEDOUT;
246246

247247
/* If what we read equals the endpoint's Max Packet Size, consume the ZLP explicitly */
248-
if ((len == actual) && !(actual % qdl_usb->in_maxpktsize)) {
248+
if (len == actual && !(actual % qdl_usb->in_maxpktsize)) {
249249
ret = libusb_bulk_transfer(qdl_usb->usb_handle, qdl_usb->in_ep,
250250
NULL, 0, NULL, timeout);
251251
if (ret)

0 commit comments

Comments
 (0)