diff options
author | Maxim Nikulin <m.a.nikulin@gmail.com> | 2011-07-09 16:44:44 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-08 19:34:45 (GMT) |
commit | 4f1a7a3e78037721496283ea3e87cfefc64d99c7 (patch) | |
tree | 942f303bc575409acae9f60e6498fbb9a3b24118 /drivers/usb | |
parent | e94c587e78811d95a5b0db094f984eeb99f86388 (diff) | |
download | linux-fsl-qoriq-4f1a7a3e78037721496283ea3e87cfefc64d99c7.tar.xz |
USB: assign instead of equal in usbtmc.c
Assign operator instead of equality test in the usbtmc_ioctl_abort_bulk_in() function.
Signed-off-by: Maxim A. Nikulin <M.A.Nikulin@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/class/usbtmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index 385acb8..3f94ac3 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c @@ -268,7 +268,7 @@ usbtmc_abort_bulk_in_status: 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) { |