ASoC: Intel: avs: Remove dead code
The result of list_next_entry()/list_last_entry() is never null. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://msgid.link/r/20240405090929.1184068-10-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
41bf4525fa
commit
d58275f474
@ -709,8 +709,6 @@ static int avs_path_pipeline_arm(struct avs_dev *adev,
|
||||
/* bind current module to next module on list */
|
||||
source = mod;
|
||||
sink = list_next_entry(mod, node);
|
||||
if (!source || !sink)
|
||||
return -EINVAL;
|
||||
|
||||
ret = avs_ipc_bind(adev, source->module_id, source->instance_id,
|
||||
sink->module_id, sink->instance_id, 0, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user