diff options
author | Andy Shevchenko <[email protected]> | 2023-10-03 17:21:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-05 11:12:59 +0200 |
commit | a549e3aac29cde86c1ade76909df759918c11653 (patch) | |
tree | 2edcb86d93de2761031028c62a4283de6501230a /scripts/generate_rust_analyzer.py | |
parent | aab8aa0d35fc59e81c367cf34f990aaf48d24419 (diff) |
driver core: platform: Refactor error path in a couple places
The usual pattern is to bail out on the error case. Besides that
one of the labels is redundant as we may return directly. Refactor
platform_device_add() and platform_dma_configure() accordingly.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions