Staging: iio: meter: ade7753: Merged assignment with immediately following return...
authorTina Johnson <tinajohnson.1234@gmail.com>
Sun, 14 Sep 2014 11:00:05 +0000 (16:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:23:51 +0000 (16:23 -0700)
commit9034720a54738bbaf96b619f34f887199ac7efed
tree6cba6b89b744cadb7a069f71fe71ec6c8f8c666d
parent496a51bd64eb15f14cee3519f5b75b28d09567e3
Staging: iio: meter: ade7753: Merged assignment with immediately following return statement

Saved one line of code by merging the assigning and return statements
of variable ret. And thus removed variable len which was no longer useful.

This patch was done using Coccinelle script and the following semantic
patch was used:

@@
expression ret;
identifier f;
@@

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

Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Acked-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/meter/ade7753.c