mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
ASoC: ti: Cleanup locking code using guard() helpers
phucduc.bui@gmail.com <phucduc.bui@gmail.com> says: This series converts mutex and spinlock handling in TI ASoC drivers to use guard() helpers. Most patches are straightforward conversions to guard() helpers. Two patches include minor cleanup changes in the process: omap-dmic: Simplified omap_dmic_dai_startup() by removing the temporary return variable and using a direct return path on error. omap-mcbsp: Modernized omap_mcbsp_request() by using __free(kfree) for memory management. This ensures that memory is always freed on error paths after the spinlock is released, without needing manual goto labels. No behavior change intended. Link: https://patch.msgid.link/20260508103837.138142-1-phucduc.bui@gmail.com
This commit is contained in:
commit
f86caf5ff6
7 changed files with 81 additions and 120 deletions
Loading…
Add table
Add a link
Reference in a new issue