soundwire: stream: Remove unnecessary gotos
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 2 Jun 2023 10:11:40 +0000 (11:11 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 8 Jun 2023 11:39:11 +0000 (17:09 +0530)
commit0cbcced983e763f33c24a6834ed0d7c13152a0bb
tree95f5dea5764d84bf2eea04ff76cbf73b763b982b
parente0240644e7cbb0fce4ea4e3fdcefdaa1a39eb9ea
soundwire: stream: Remove unnecessary gotos

There is a lot of code using gotos to skip small sections of code, this
is a fairly dubious use of a goto, especially when the level of
intentation is really low. Most of this code doesn't even breach 80
characters when naively shifted over.

Simplify the code a bit, by replacing these unnecessary gotos with
simple ifs.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230602101140.2040141-5-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c