mbox series

[0/9] soundwire: simplify code with cleanup.h

Message ID 20240703-soundwire-cleanup-h-v1-0-24fa0dbb948f@linaro.org (mailing list archive)
Headers show
Series soundwire: simplify code with cleanup.h | expand

Message

Krzysztof Kozlowski July 3, 2024, 10:15 a.m. UTC
Allocate the memory with scoped/cleanup.h to reduce error handling
(simpler error paths) and make the code a bit smaller.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (9):
      soundwire: amd: simplify return path in hw_params
      soundwire: amd: simplify with cleanup.h
      soundwire: amd_init: simplify with cleanup.h
      soundwire: intel: simplify return path in hw_params
      soundwire: intel: simplify with cleanup.h
      soundwire: intel_ace2x: simplify return path in hw_params
      soundwire: intel_ace2x: simplify with cleanup.h
      soundwire: cadence: simplify with cleanup.h
      soundwire: debugfs: simplify with cleanup.h

 drivers/soundwire/amd_init.c       |  7 +++----
 drivers/soundwire/amd_manager.c    | 13 +++++--------
 drivers/soundwire/cadence_master.c |  5 ++---
 drivers/soundwire/debugfs.c        |  7 ++-----
 drivers/soundwire/intel.c          | 25 +++++++++----------------
 drivers/soundwire/intel_ace2x.c    | 22 ++++++++--------------
 6 files changed, 29 insertions(+), 50 deletions(-)
---
base-commit: 246cf92bafedeea46cb16964d16478d6b68f8e5a
change-id: 20240703-soundwire-cleanup-h-a29941fb3dd4

Best regards,

Comments

Vinod Koul July 10, 2024, 5:45 a.m. UTC | #1
On Wed, 03 Jul 2024 12:15:52 +0200, Krzysztof Kozlowski wrote:
> Allocate the memory with scoped/cleanup.h to reduce error handling
> (simpler error paths) and make the code a bit smaller.
> 
> Best regards,
> Krzysztof
> 

Applied, thanks!

[1/9] soundwire: amd: simplify return path in hw_params
      commit: 89cc1354d388ba8c8f8b41095736202a83591497
[2/9] soundwire: amd: simplify with cleanup.h
      commit: 02611eeec5893c17ad85769007ecfb5cbe7a5987
[3/9] soundwire: amd_init: simplify with cleanup.h
      commit: 1f93cb229b0e2d78233690c9ca65715e1f798803
[4/9] soundwire: intel: simplify return path in hw_params
      commit: ba874a8c2f895d898bbaf67f9e952425aff1557d
[5/9] soundwire: intel: simplify with cleanup.h
      commit: e4fcf153d91809aefa6860d285e747fd7dd9e61c
[6/9] soundwire: intel_ace2x: simplify return path in hw_params
      commit: 13814ed162687be08e34762040cfc2e58831219d
[7/9] soundwire: intel_ace2x: simplify with cleanup.h
      commit: 3dce65898e0911aa76a0a321540b78e9218b9a6a
[8/9] soundwire: cadence: simplify with cleanup.h
      commit: b72d4af98cae2f74dc8061befcc3c0c2a174894f
[9/9] soundwire: debugfs: simplify with cleanup.h
      commit: fdd3d14ca3c8c5269174f10d33d6181173cbd0b4

Best regards,