soundwire: cadence: Simplify error paths in cdns_xfer_msg()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Sat, 17 Sep 2022 15:48:22 +0000 (16:48 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 20 Sep 2022 05:07:14 +0000 (10:37 +0530)
commitbafb1eacfbd98c6cdbca7e1723ef933ad371cd51
tree8f5356529e5b7703dfb65155a0f1ee2f1bd57d1a
parent7f6bad4dfde0ec1d479fdcbbb62bccdbf3a93bb4
soundwire: cadence: Simplify error paths in cdns_xfer_msg()

There's no need to goto an exit label to return from cdns_xfer_msg().
It doesn't do any cleanup, only a return statement.

Replace the gotos with returns.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220917154822.690472-2-rf@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c