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>
This commit is contained in:
Maxim Nikulin 2011-07-09 23:44:44 +07:00 committed by Greg Kroah-Hartman
parent e94c587e78
commit 4f1a7a3e78
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ usbtmc_abort_bulk_in_status:
dev_err(dev, "usb_bulk_msg returned %d\n", rv); dev_err(dev, "usb_bulk_msg returned %d\n", rv);
goto exit; goto exit;
} }
} while ((actual = max_size) && } while ((actual == max_size) &&
(n < USBTMC_MAX_READS_TO_CLEAR_BULK_IN)); (n < USBTMC_MAX_READS_TO_CLEAR_BULK_IN));
if (actual == max_size) { if (actual == max_size) {