Commit 5a41b934 authored by Alison Schofield's avatar Alison Schofield Committed by Greg Kroah-Hartman

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: default avatarAlison Schofield <amsfield22@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b3d0ea8d
...@@ -393,10 +393,7 @@ static const int num_groups = ARRAY_SIZE(all_groups); ...@@ -393,10 +393,7 @@ static const int num_groups = ARRAY_SIZE(all_groups);
char *spk_msg_get(enum msg_index_t index) char *spk_msg_get(enum msg_index_t index)
{ {
char *ch; return speakup_msgs[index];
ch = speakup_msgs[index];
return ch;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment