]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: misc: Fixed assignment error in if statement
authorLisa Nguyen <lisa@xenapiadmin.com>
Wed, 15 May 2013 22:21:07 +0000 (15:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 04:06:30 +0000 (00:06 -0400)
Fixed the assignment error in an if statement in adutux.c

Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/adutux.c

index 267b1946b4c69c251d207461fa53631fd49b2c6c..eb3c8c142fa988de1aaaee07d036e93554bb48a3 100644 (file)
@@ -276,7 +276,8 @@ static int adu_open(struct inode *inode, struct file *file)
 
        subminor = iminor(inode);
 
-       if ((retval = mutex_lock_interruptible(&adutux_mutex))) {
+       retval = mutex_lock_interruptible(&adutux_mutex);
+       if (retval) {
                dbg(2, "%s : mutex lock failed", __func__);
                goto exit_no_lock;
        }