Staging: comedi: Compressed two lines of code into one.
authorHeena Sirwani <heenasirwani@gmail.com>
Mon, 6 Oct 2014 08:16:09 +0000 (13:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:13 +0000 (10:29 +0800)
commitfe43ec5350d34244dedf3e6647f991f7c348c82d
tree15e5f7dc479569dcf78c178fd0fb12b6d979b121
parentea0db9b2fd284104a9fd1cead85252a83375c71f
Staging: comedi: Compressed two lines of code into one.

The following patch compressed two lines of code into one using
coccinelle and removed an unused variable.
The semantic patch used is as follows:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Signed-off-by: Heena Sirwani <heenasirwani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c