summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-17 10:17:08 +0000
committerMark Brown <broonie@kernel.org>2018-01-17 11:21:53 +0000
commitfb2fcaeaad504ae9dad26f7b26a8ea840d00535f (patch)
tree7379b16afc9f7ef2cc7810b9ddc284465ad035d8 /sound
parent3a1479599a610cd49cbf91da68963ade90ee0fa3 (diff)
downloadlinux-fb2fcaeaad504ae9dad26f7b26a8ea840d00535f.tar.gz
linux-fb2fcaeaad504ae9dad26f7b26a8ea840d00535f.tar.bz2
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;
}