staging: speakup: compress return logic into one line
authorAlison Schofield <amsfield22@gmail.com>
Wed, 10 Feb 2016 18:57:31 +0000 (10:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 04:00:30 +0000 (20:00 -0800)
commit5a41b934766a00764669922f1faac1fbdcc179bd
tree9a117f3dfdb9ed8bde39bba3258ccdf9c17aafc4
parentb3d0ea8d8078ee0e1ffc751c17c33fc3589b9446
staging: speakup: compress return logic into one line

Simplify function return by merging assignment and return into
one command line. Remove (now) unused local variable.

Found using Coccinelle:
@@
expression e, ret;
@@

-ret =
+return
e;
-return ret;

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/i18n.c