sound/soc/qcom/qdsp6/audioreach.c | 28 +++++++++++++++++----------- sound/soc/qcom/qdsp6/q6adm.c | 2 ++ sound/soc/qcom/qdsp6/q6afe.c | 10 ++++++---- sound/soc/qcom/qdsp6/q6apm.c | 9 ++++++--- sound/soc/qcom/qdsp6/q6asm.c | 19 +++++++++++++++---- sound/soc/qcom/qdsp6/q6prm.c | 16 ++++++++-------- 6 files changed, 54 insertions(+), 30 deletions(-)
Please, please stop ending cleanup.h patches for very simple code like:
foo = kzalloc();
kfree(foo);
return;
... *if you do not intend to read cleanup.h*. These changes are making
simple code not necessarily simpler. But worse, if you do not read
cleanup.h then you introduce actually undesired, error-prone and wrong
style of having constructors with redundant values (= NULL).
This is actually worse code.
If you do not agree in declaration-in-place-of-use (fair!), then do not
use cleanup.h. If you want to use cleanup.h, then please read cleanup.h
before.
This is second mixup I see recently around Qualcomm files.
Best regards,
Krzysztof
---
Krzysztof Kozlowski (6):
ASoC: qcom: q6prm: Fix confusing cleanup.h syntax
ASoC: qcom: q6asm: Fix confusing cleanup.h syntax
ASoC: qcom: q6apm: Fix confusing cleanup.h syntax
ASoC: qcom: q6afe: Fix confusing cleanup.h syntax
ASoC: qcom: audioreach: Fix confusing cleanup.h syntax
ASoC: qcom: Minor readability improve with new lines
sound/soc/qcom/qdsp6/audioreach.c | 28 +++++++++++++++++-----------
sound/soc/qcom/qdsp6/q6adm.c | 2 ++
sound/soc/qcom/qdsp6/q6afe.c | 10 ++++++----
sound/soc/qcom/qdsp6/q6apm.c | 9 ++++++---
sound/soc/qcom/qdsp6/q6asm.c | 19 +++++++++++++++----
sound/soc/qcom/qdsp6/q6prm.c | 16 ++++++++--------
6 files changed, 54 insertions(+), 30 deletions(-)
---
base-commit: 92fd6e84175befa1775e5c0ab682938eca27c0b2
change-id: 20251129-asoc-wrong-cleanup-h-can-people-stop-sending-this-without-reading-docs-ebe8abad6e55
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
On 11/29/25 1:17 PM, Krzysztof Kozlowski wrote: > Please, please stop ending cleanup.h patches for very simple code like: > > foo = kzalloc(); > kfree(foo); > return; > > ... *if you do not intend to read cleanup.h*. These changes are making > simple code not necessarily simpler. But worse, if you do not read > cleanup.h then you introduce actually undesired, error-prone and wrong > style of having constructors with redundant values (= NULL). > > This is actually worse code. > > If you do not agree in declaration-in-place-of-use (fair!), then do not > use cleanup.h. If you want to use cleanup.h, then please read cleanup.h > before. > > This is second mixup I see recently around Qualcomm files. > > Best regards, > Krzysztof > > --- > Krzysztof Kozlowski (6): > ASoC: qcom: q6prm: Fix confusing cleanup.h syntax > ASoC: qcom: q6asm: Fix confusing cleanup.h syntax > ASoC: qcom: q6apm: Fix confusing cleanup.h syntax > ASoC: qcom: q6afe: Fix confusing cleanup.h syntax > ASoC: qcom: audioreach: Fix confusing cleanup.h syntax > ASoC: qcom: Minor readability improve with new lines > Thanks Krzysztof for fixing the confusing parts, I do agree with you. there are alteast 100+ such instances in just sound/* Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> --srini > sound/soc/qcom/qdsp6/audioreach.c | 28 +++++++++++++++++----------- > sound/soc/qcom/qdsp6/q6adm.c | 2 ++ > sound/soc/qcom/qdsp6/q6afe.c | 10 ++++++---- > sound/soc/qcom/qdsp6/q6apm.c | 9 ++++++--- > sound/soc/qcom/qdsp6/q6asm.c | 19 +++++++++++++++---- > sound/soc/qcom/qdsp6/q6prm.c | 16 ++++++++-------- > 6 files changed, 54 insertions(+), 30 deletions(-) > --- > base-commit: 92fd6e84175befa1775e5c0ab682938eca27c0b2 > change-id: 20251129-asoc-wrong-cleanup-h-can-people-stop-sending-this-without-reading-docs-ebe8abad6e55 > > Best regards,
On 01/12/2025 16:12, Srinivas Kandagatla wrote: >> Krzysztof >> >> --- >> Krzysztof Kozlowski (6): >> ASoC: qcom: q6prm: Fix confusing cleanup.h syntax >> ASoC: qcom: q6asm: Fix confusing cleanup.h syntax >> ASoC: qcom: q6apm: Fix confusing cleanup.h syntax >> ASoC: qcom: q6afe: Fix confusing cleanup.h syntax >> ASoC: qcom: audioreach: Fix confusing cleanup.h syntax >> ASoC: qcom: Minor readability improve with new lines >> > > Thanks Krzysztof for fixing the confusing parts, I do agree with you. > > there are alteast 100+ such instances in just sound/* > More patches then! I have a long flight to Tokyo for that. :) Best regards, Krzysztof
On Sat, 29 Nov 2025 14:17:52 +0100, Krzysztof Kozlowski wrote:
> Please, please stop ending cleanup.h patches for very simple code like:
>
> foo = kzalloc();
> kfree(foo);
> return;
>
> ... *if you do not intend to read cleanup.h*. These changes are making
> simple code not necessarily simpler. But worse, if you do not read
> cleanup.h then you introduce actually undesired, error-prone and wrong
> style of having constructors with redundant values (= NULL).
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/6] ASoC: qcom: q6prm: Fix confusing cleanup.h syntax
commit: bd9e7182e36169cd7e1ea3b25b5c82b1c5698e64
[2/6] ASoC: qcom: q6asm: Fix confusing cleanup.h syntax
commit: c862dc9019f517893eb83096076d7eed4ecbb372
[3/6] ASoC: qcom: q6apm: Fix confusing cleanup.h syntax
commit: 310e6f95eedaae04990072078adbb38beb149811
[4/6] ASoC: qcom: q6afe: Fix confusing cleanup.h syntax
commit: 3c84bfa47ff29ec0c202cb139d365421c6778d65
[5/6] ASoC: qcom: audioreach: Fix confusing cleanup.h syntax
commit: 0e6071d656fb284e003a45ce158831d4d12aac5a
[6/6] ASoC: qcom: Minor readability improve with new lines
commit: 0bb160c92ad400c692984763996b758458adea17
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
© 2016 - 2026 Red Hat, Inc.