From: Mahati Chamarthy Date: Mon, 22 Sep 2014 17:34:13 +0000 (+0530) Subject: Staging: vme: devices: Merges two lines of code and removes unused variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc489a528728dcce38df10a74cc1539522b670e7;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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: