staging: comedi: Compress return logic into one line.
authorVarsha Rao <rvarsha016@gmail.com>
Sun, 12 Mar 2017 15:07:30 +0000 (20:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2017 22:27:31 +0000 (06:27 +0800)
commit06cb6b5434937180251d0ddb3d9a4cb2af6015da
treea9282b3b5339060e9eae00353cc6c1894a5c77ec
parentcb5de2f8aab4a3f43c0f958c332a986c4b3c44cb
staging: comedi: Compress return logic into one line.

Simplify function return by merging assignment and return into a single
line. The following coccinelle script is used to fix this issue.

@@
expression e;
local idexpression ret;
@@

-ret = e;
-return ret;
+return e;

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c