aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-02-01 17:27:58 +0200
committerBartosz Golaszewski <brgl@bgdev.pl>2022-02-08 10:36:11 +0100
commit6105b2e391879df0ebee20c764bbdd406cb74fb2 (patch)
tree30fc87a5d84adbe9ec5fb2b7c3d884c4229deb29 /tools/perf/scripts/python/export-to-sqlite.py
parentgpiolib: Use short form of ternary operator in gpiod_get_index() (diff)
downloadwireguard-linux-6105b2e391879df0ebee20c764bbdd406cb74fb2.tar.xz
wireguard-linux-6105b2e391879df0ebee20c764bbdd406cb74fb2.zip
gpiolib: Simplify error path in gpiod_get_index() when requesting GPIO
Simplify error path in the gpiod_get_index() when requesting a GPIO line by: - checking for error condition first - dropping redundant 'else' As a result, decrease the indentation level for better readability. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions