Message ID | 20240405090929.1184068-10-cezary.rojewski@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d58275f474b4a27b4e97839ffe8d9fe55c0cc40a |
Headers | show |
Series | ASoC: Intel: avs: Fixes and cleanups for 6.10 | expand |
diff --git a/sound/soc/intel/avs/path.c b/sound/soc/intel/avs/path.c index 8dfd90587427..fa3fec339548 100644 --- a/sound/soc/intel/avs/path.c +++ b/sound/soc/intel/avs/path.c @@ -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);
The result of list_next_entry()/list_last_entry() is never null. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> --- sound/soc/intel/avs/path.c | 2 -- 1 file changed, 2 deletions(-)