summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorLisa Nguyen <lisa@xenapiadmin.com>2013-05-15 22:21:07 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-16 04:06:30 (GMT)
commite77c4e6a91a2ec1c3e54cd17c6bdd467dc620184 (patch)
treeeb36a97795614376318f30f465822fd2e3f1b4de /drivers/usb
parent83fc1fcd13bbcd7d77c55a53a0debfff12e5ff48 (diff)
downloadlinux-fsl-qoriq-e77c4e6a91a2ec1c3e54cd17c6bdd467dc620184.tar.xz
usb: misc: Fixed assignment error in if statement
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/adutux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index 267b194..eb3c8c1 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -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;
}