提交 fc489a52 编写于 作者: M Mahati Chamarthy 提交者: Greg Kroah-Hartman

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: NMahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 92db2a27
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册