From fc489a528728dcce38df10a74cc1539522b670e7 Mon Sep 17 00:00:00 2001 From: Mahati Chamarthy Date: Mon, 22 Sep 2014 23:04:13 +0530 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vme/devices/vme_user.c | 4 +--- 1 file changed, 1 insertion(+), 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: -- 2.39.5