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:32:50 +0000 (14:32 -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 7c5f4e32c9202b9f7ac0b0b95c92fc5a3343f482..17f663dcaca5d6c6301b914b9aae00588b20ebad 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) {