diff options
author | Mahati Chamarthy <mahati.chamarthy@gmail.com> | 2014-09-22 23:04:13 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 20:25:29 -0700 |
commit | fc489a528728dcce38df10a74cc1539522b670e7 (patch) | |
tree | e8928b4884cbe2a2e1f54b721780d724bc4b901c /drivers/staging/vme | |
parent | 92db2a276c6ad8ded8e1fea2329d4d00394f5ad4 (diff) |
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>
Diffstat (limited to 'drivers/staging/vme')
-rw-r--r-- | drivers/staging/vme/devices/vme_user.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index 920e50addd3e..73cec14cbf56 100644 --- a/drivers/staging/vme/devices/vme_user.c +++ b/drivers/staging/vme/devices/vme_user.c @@ -482,11 +482,9 @@ static int vme_user_ioctl(struct inode *inode, struct file *file, return -EFAULT; } - retval = vme_irq_generate(vme_user_bridge, + return vme_irq_generate(vme_user_bridge, irq_req.level, irq_req.statid); - - return retval; } break; case MASTER_MINOR: |