diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-21 16:54:12 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-03-29 19:11:23 +0300 |
commit | 4ea0c97776bf8c63805eb0f8182d9c20072219d9 (patch) | |
tree | bda5e8b20c6d9ccce80db52c84cb67da0073592a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 79736429c97f517247645e73e75c956efd09ad03 (diff) | |
download | linux-4ea0c97776bf8c63805eb0f8182d9c20072219d9.tar.xz |
gpiolib: Check array_info for NULL only once in gpiod_get_array()
gpiod_get_array() has a long if-else-if branching where each of them
tests for the same variable to be not NULL. Instead, check for NULL
before even going to that flow.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions