diff options
author | Maxim Nikulin <m.a.nikulin@gmail.com> | 2011-07-09 23:44:44 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-08 12:34:45 -0700 |
commit | 4f1a7a3e78037721496283ea3e87cfefc64d99c7 (patch) | |
tree | 942f303bc575409acae9f60e6498fbb9a3b24118 /drivers | |
parent | e94c587e78811d95a5b0db094f984eeb99f86388 (diff) | |
download | talos-op-linux-4f1a7a3e78037721496283ea3e87cfefc64d99c7.tar.gz talos-op-linux-4f1a7a3e78037721496283ea3e87cfefc64d99c7.zip |
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')
-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 385acb895ab3..3f94ac34dce3 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) { |