mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
d146de3430
commit
a7ad7ce418
1 changed files with 1 additions and 0 deletions
|
@ -822,6 +822,7 @@ static int do_bank_switch(struct sdw_stream_runtime *stream)
|
|||
} else if (multi_link) {
|
||||
dev_err(bus->dev,
|
||||
"Post bank switch ops not implemented\n");
|
||||
ret = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue