ASoC: Intel: remove second duplicated assignment to pointer 'res'
authorColin Ian King <[email protected]>
Wed, 17 Jan 2018 10:17:08 +0000 (10:17 +0000)
committerMark Brown <[email protected]>
Wed, 17 Jan 2018 11:21:53 +0000 (11:21 +0000)
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/intel/skylake/skl-topology.c

index 28bc16a8e09a6657ed4799298a3c3b203987f696..73af6e19ebbde8d6eb997a96faaefb56a1f60b93 100644 (file)
@@ -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;
 }