]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: stream: Fix error return code in do_bank_switch()
authorWang Wensheng <wangwensheng4@huawei.com>
Mon, 7 Mar 2022 07:40:39 +0000 (07:40 +0000)
committerVinod Koul <vkoul@kernel.org>
Tue, 5 Apr 2022 04:19:25 +0000 (09:49 +0530)
commit180fadb607c50550c4fa814911ea3768dcde1503
tree280a7995da87939e002c6e991fa20633ddd032cc
parent6c2d8a308455385c5c6773f4f08b079ba805f29f
soundwire: stream: Fix error return code in do_bank_switch()

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220307074039.117488-1-wangwensheng4@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c