Searched hist:"0 cbcced9" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/soundwire/ |
H A D | stream.c | 0cbcced9 Fri Jun 02 05:11:40 CDT 2023 Charles Keepax <ckeepax@opensource.cirrus.com> 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>
|