Assign operator instead of equality test in the usbtmc_ioctl_abort_bulk_in() function. Signed-off-by: Maxim A. Nikulin <M.A.Nikulin@xxxxxxxxx> --- diff -Naur linux-2.6.git.orig/drivers/usb/class/usbtmc.c linux-2.6.git/drivers/usb/class/usbtmc.c --- linux-2.6.git.orig/drivers/usb/class/usbtmc.c 2011-07-09 16:19:39.000000000 +0000 +++ linux-2.6.git/drivers/usb/class/usbtmc.c 2011-07-09 16:20:59.000000000 +0000 @@ -268,7 +268,7 @@ 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) { -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html