From: Maxim Nikulin Date: Sat, 9 Jul 2011 16:44:44 +0000 (+0700) Subject: USB: assign instead of equal in usbtmc.c X-Git-Tag: MMI-PSA29.97-13-9~18582^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f1a7a3e78037721496283ea3e87cfefc64d99c7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- 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) {