diff options
author | Dan Carpenter <[email protected]> | 2024-04-12 15:07:01 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-04-14 16:54:39 +0900 |
commit | a8cad4a4e431e250edc05242a8ca1be6e4b33749 (patch) | |
tree | a1768bf3bf26833aabba5fdcd195587f89553a84 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4be7bc275253c0f35c8f6362af1ee5d91d5d83e9 (diff) |
ASoC: soc-card: soc-card-test: Fix some error handling in init()
There are two issues here:
1) The get_device() needs a matching put_device() on error paths.
2) The "if (!ret)" was supposed to be "if (ret)".
I re-arranged the code a bit to do the allocation before the
get_device().
Fixes: ef7784e41db7 ("ASoC: soc-card: Add KUnit test case for snd_soc_card_get_kcontrol")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Richard Fitzgerald <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions