diff options
| author | Andy Shevchenko <[email protected]> | 2022-03-30 18:06:20 +0300 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2022-04-05 14:20:07 +0200 |
| commit | 1cef8b5019769d46725932eeace7a383bca97905 (patch) | |
| tree | 69cfa51c44632be9350b347881cf612a4d936d22 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 265a3bf486d4aac913d1bcbe81b01e271328a265 (diff) | |
gpiolib: Get rid of redundant 'else'
In the snippets like the following
if (...)
return / goto / break / continue ...;
else
...
the 'else' is redundant. Get rid of it. In case of IOCTLs use
switch-case pattern that seems the usual in such cases.
While at it, clarify necessity of else in gpiod_direction_output()
by attaching else if to the closing curly brace on a previous line.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions