summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-17 11:17:08 +0100
committerMark Brown <broonie@kernel.org>2018-01-17 12:21:53 +0100
commitfb2fcaeaad504ae9dad26f7b26a8ea840d00535f (patch)
tree7379b16afc9f7ef2cc7810b9ddc284465ad035d8 /sound
parentASoC: Intel - Convert to use acpi_dev_get_first_match_name() (diff)
downloadlinux-fb2fcaeaad504ae9dad26f7b26a8ea840d00535f.tar.xz
linux-fb2fcaeaad504ae9dad26f7b26a8ea840d00535f.zip
ASoC: Intel: remove second duplicated assignment to pointer 'res'
The second assignment to res is identical to the previous assignment so it is redundant and can be removed. Cleans up clang warning: sound/soc/intel/skylake/skl-topology.c:191:25: warning: Value stored to 'res' during its initialization is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/intel/skylake/skl-topology.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index 28bc16a8e09a..73af6e19ebbd 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -190,7 +190,6 @@ skl_tplg_free_pipe_mcps(struct skl *skl, struct skl_module_cfg *mconfig)
u8 res_idx = mconfig->res_idx;
struct skl_module_res *res = &mconfig->module->resources[res_idx];
- res = &mconfig->module->resources[res_idx];
skl->resource.mcps -= res->cps;
}