]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: audio: Remove un-necessary goto statement
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Thu, 4 Aug 2016 09:44:28 +0000 (15:14 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 4 Aug 2016 17:07:30 +0000 (19:07 +0200)
commit90579d4b577154606a54cab9771e15a41867b79b
treeab0f0d87d5073848ce63b22fc499c05c264195b3
parent921dbe52b40b2573d9a0e8337c768930bef25fb4
greybus: audio: Remove un-necessary goto statement

For most of the helper functions, goto statement is widely used.  It was
originally used with an intent of single exit point for the function
with some cleanup required. This is no more the case. So, simplify code
by avoiding un-necessary gotos.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_codec.c