Staging: vme: devices: Merges two lines of code and removes unused variable

This patch merges an assignment with an immediately following return of
the assigned variable.  The following Coccinelle semantic patch was used
to make this transformation:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mahati Chamarthy 2014-09-22 23:04:13 +05:30 коммит произвёл Greg Kroah-Hartman
Родитель 92db2a276c
Коммит fc489a5287
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -482,11 +482,9 @@ static int vme_user_ioctl(struct inode *inode, struct file *file,
return -EFAULT; return -EFAULT;
} }
retval = vme_irq_generate(vme_user_bridge, return vme_irq_generate(vme_user_bridge,
irq_req.level, irq_req.level,
irq_req.statid); irq_req.statid);
return retval;
} }
break; break;
case MASTER_MINOR: case MASTER_MINOR: