projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83fc1fc
)
usb: misc: Fixed assignment error in if statement
author
Lisa Nguyen
<lisa@xenapiadmin.com>
Wed, 15 May 2013 22:21:07 +0000
(15:21 -0700)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/adutux.c
b/drivers/usb/misc/adutux.c
index 267b1946b4c69c251d207461fa53631fd49b2c6c..eb3c8c142fa988de1aaaee07d036e93554bb48a3 100644
(file)
--- 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;
}