From 5cd4e68c11b97cb0f0d31b139853086dcaf623dc Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Tue, 20 Apr 2021 12:54:08 -0700 Subject: [PATCH] dai: don't set values we won't use we are setting the value but have paths that don't use it and always set on paths that do use it, lets remove the double write. Signed-off-by: Curtis Malainey --- src/audio/dai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/dai.c b/src/audio/dai.c index dfc48ef18..44c033671 100644 --- a/src/audio/dai.c +++ b/src/audio/dai.c @@ -688,7 +688,7 @@ static int dai_config_dma_channel(struct comp_dev *dev, struct sof_ipc_dai_confi static int dai_config(struct comp_dev *dev, struct sof_ipc_dai_config *config) { struct dai_data *dd = comp_get_drvdata(dev); - int ret = 0; + int ret; comp_info(dev, "dai_config() dai type = %d index = %d dd %p", config->type, config->dai_index, dd);