Commit 36a357ee authored by Maxim Nikulin's avatar Maxim Nikulin Committed by Greg Kroah-Hartman

USB: assign instead of equal in usbtmc.c

commit 4f1a7a3e upstream.

Assign operator instead of equality test in the usbtmc_ioctl_abort_bulk_in() function.
Signed-off-by: default avatarMaxim A. Nikulin <M.A.Nikulin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b6708a1c
......@@ -267,7 +267,7 @@ static int usbtmc_ioctl_abort_bulk_in(struct usbtmc_device_data *data)
dev_err(dev, "usb_bulk_msg returned %d\n", rv);
goto exit;
}
} while ((actual = max_size) &&
} while ((actual == max_size) &&
(n < USBTMC_MAX_READS_TO_CLEAR_BULK_IN));
if (actual == max_size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment