Skip to content

Commit

Permalink
usb: misc: Fixed assignment error in if statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lisa Nguyen authored and Greg Kroah-Hartman committed May 16, 2013
1 parent 83fc1fc commit e77c4e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/misc/adutux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e77c4e6

Please sign in to comment.