diff options
| author | Amadeusz Sławiński <amade@asmblr.net> | 2026-10-14 22:06:03 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-15 23:08:05 +0100 |
| commit | 1641c1ba27abcd3ea3bba1232d9d817092f1b757 (patch) | |
| tree | dfcb42f029691f26f415a9542ce4552805172cac /scripts/basic/split-include.c | |
| parent | 223ec2a93bec6c5ee859094c826fec78516a0bb3 (diff) | |
| download | linux-1641c1ba27abcd3ea3bba1232d9d817092f1b757.tar.gz linux-1641c1ba27abcd3ea3bba1232d9d817092f1b757.zip | |
ASoC: soc-topology-test: Check return value of kunit_device_register()
Call to kunit_device_register() can fail. Check return result of
register call. While at it introduce helper variable so that if it fails
put_device is called on properly initialized variable.
Fixes: e57cdff0ddc4 ("ASoC: topology: Replace fake root_device with kunit_device in tests")
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Link: https://patch.msgid.link/20261014200608.118770-4-amade@asmblr.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
