]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: assign instead of equal in usbtmc.c
authorMaxim Nikulin <m.a.nikulin@gmail.com>
Sat, 9 Jul 2011 16:44:44 +0000 (23:44 +0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Aug 2011 21:08:01 +0000 (14:08 -0700)
commit 4f1a7a3e78037721496283ea3e87cfefc64d99c7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/usbtmc.c

index d9461c91b8c9fe3026cd63801566f1dc3ef3a2c4..ae1ffbc649069b4c463dea2431b0a752b5552c03 100644 (file)
@@ -267,7 +267,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) {