Skip to content

Commit a7ad7ce

Browse files
Wang Wenshengvinodkoul
authored andcommitted
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>
1 parent d146de3 commit a7ad7ce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/soundwire/stream.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ static int do_bank_switch(struct sdw_stream_runtime *stream)
822822
} else if (multi_link) {
823823
dev_err(bus->dev,
824824
"Post bank switch ops not implemented\n");
825+
ret = -EINVAL;
825826
goto error;
826827
}
827828

0 commit comments

Comments
 (0)