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 (11):
ASoC: codecs: audio-iio-aux: Simplify audio_iio_aux_add_dapms() with cleanup.h
ASoC: codecs: audio-iio-aux: Simplify audio_iio_aux_probe() with cleanup.h
ASoC: codecs: wcd9335: Simplify with cleanup.h
ASoC: codecs: wcd934x: Simplify with cleanup.h
ASoC: simple-card-utils: Simplify with cleanup.h
ASoC: audio-graph-card: Use cleanup.h instead of devm_kfree()
ASoC: audio-graph-card2: Use cleanup.h instead of devm_kfree()
ASoC: simple-card: Use cleanup.h instead of devm_kfree()
ASoC: ops: Simplify with cleanup.h
ASoC: dapm: Simplify dapm_cnew_widget() with cleanup.h
ASoC: dapm: Simplify snd_soc_dai_link_event_pre_pmu() with cleanup.h
sound/soc/codecs/audio-iio-aux.c | 83 ++++++++++++-----------------------
sound/soc/codecs/wcd9335.c | 22 ++++------
sound/soc/codecs/wcd934x.c | 22 ++++------
sound/soc/generic/audio-graph-card.c | 5 +--
sound/soc/generic/audio-graph-card2.c | 5 +--
sound/soc/generic/simple-card-utils.c | 13 +++---
sound/soc/generic/simple-card.c | 5 +--
sound/soc/soc-dapm.c | 47 ++++++++------------
sound/soc/soc-ops.c | 26 +++++------
9 files changed, 87 insertions(+), 141 deletions(-)
---
base-commit: cf601827c51b0496f6bb8a1865f1bf69ebd246b7
change-id: 20240703-asoc-cleanup-h-ef9cbfb67b66
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
[Index of Archives]
[Pulseaudio]
[Linux Audio Users]
[ALSA Devel]
[Fedora Desktop]
[Fedora SELinux]
[Big List of Linux Books]
[Yosemite News]
[KDE Users]