]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:21:30 +0000 (11:21 -0400)
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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/usb/class/usbtmc.c

index 3e7c1b800ebb03e8668ac6a506cc137d26bcf41a..cdce915d14bf9b5babc9b46ca258e45140f0c41d 100644 (file)
@@ -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) {