diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-10-03 17:21:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-05 12:12:59 +0300 |
commit | a549e3aac29cde86c1ade76909df759918c11653 (patch) | |
tree | 2edcb86d93de2761031028c62a4283de6501230a /drivers/base/test | |
parent | aab8aa0d35fc59e81c367cf34f990aaf48d24419 (diff) | |
download | linux-a549e3aac29cde86c1ade76909df759918c11653.tar.xz |
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 <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231003142122.3072824-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/test')
0 files changed, 0 insertions, 0 deletions