Messages in this thread Patch in this message | | | From | Colin King <> | Subject | [PATCH] ASoC: Intel: remove second duplicated assignment to pointer 'res' | Date | Wed, 17 Jan 2018 10:17:08 +0000 |
| |
From: Colin Ian King <colin.king@canonical.com>
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> --- sound/soc/intel/skylake/skl-topology.c | 1 - 1 file changed, 1 deletion(-)
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; } -- 2.15.1
| |