From: Lisa Nguyen Date: Wed, 15 May 2013 22:21:07 +0000 (-0700) Subject: usb: misc: Fixed assignment error in if statement X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e77c4e6a91a2ec1c3e54cd17c6bdd467dc620184;p=linux-beck.git usb: misc: Fixed assignment error in if statement Fixed the assignment error in an if statement in adutux.c Signed-off-by: Lisa Nguyen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index 267b1946b4c6..eb3c8c142fa9 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; }