diff options
| author | Andy Shevchenko <[email protected]> | 2022-02-01 17:27:58 +0200 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2022-02-08 10:36:11 +0100 |
| commit | 6105b2e391879df0ebee20c764bbdd406cb74fb2 (patch) | |
| tree | 30fc87a5d84adbe9ec5fb2b7c3d884c4229deb29 /drivers/fpga/xilinx-selectmap.c | |
| parent | 322b86e7a73042300303844c9bc51bf6995a47ef (diff) | |
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 <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions