Skip to content

several cosmetic, simplification and optimisation patches#6103

Merged
lgirdwood merged 4 commits intothesofproject:mainfrom
lyakh:20220805
Aug 8, 2022
Merged

several cosmetic, simplification and optimisation patches#6103
lgirdwood merged 4 commits intothesofproject:mainfrom
lyakh:20220805

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Aug 5, 2022

1 memory allocation optimisation, some list manipulation improvements and misc. minor improvements

lyakh added 3 commits August 5, 2022 16:27
On multiple occasions local variables are used for only one
intermediate operation and can easily be eliminated with no loss of
clarity. This increases code density to allow better overview.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Instead of allocating channel data for each channel separately,
allocate them in a single array.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Eliminate an unneeded negation in a test and use existing local
variables, instead of re-calculating list pointers. Also use
list_for_item() instead of open-coding it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@dbaluta
Copy link
Collaborator

dbaluta commented Aug 8, 2022

There is a build error for zephyr:

https://github.com/thesofproject/sof/runs/7693465559?check_suite_focus=true

Not sure if it is related with this PR, though. https://github.com/thesofproject/sof/runs/7693465559?check_suite_focus=true

@lgirdwood
Copy link
Member

lgirdwood commented Aug 8, 2022

@lyakh I think you may need to force push again as the Zephyr build error fix was probably merged after your PR CI was run.

Previous commits removed code but left several empty lines behind,
remove two of them.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@lgirdwood lgirdwood merged commit 04dbe42 into thesofproject:main Aug 8, 2022
@lyakh lyakh deleted the 20220805 branch August 8, 2022 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants