aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-10-03 17:21:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-05 11:12:59 +0200
commita549e3aac29cde86c1ade76909df759918c11653 (patch)
tree2edcb86d93de2761031028c62a4283de6501230a /scripts/gdb/linux/utils.py
parentaab8aa0d35fc59e81c367cf34f990aaf48d24419 (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 <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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions