]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: qcom: Fix confusing cleanup.h
authorMark Brown <broonie@kernel.org>
Mon, 15 Dec 2025 01:10:13 +0000 (10:10 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 15 Dec 2025 01:10:13 +0000 (10:10 +0900)
Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>:

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.

1  2 
sound/soc/qcom/qdsp6/q6afe.c

Simple merge