mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
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: b9ad4ceaf8 ("firehose/usb: Explicitly handle ZLP on USB read transfers")
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
This commit is contained in:
committed by
Bjorn Andersson
parent
a10cf7f5da
commit
b4030fabe6
2
usb.c
2
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)
|
||||
|
||||
Reference in New Issue
Block a user