Commit 322b86e
gpiolib: Use short form of ternary operator in gpiod_get_index()
Instead of repeating first argument for true branch, use short
form of the ternary operator, i.e. ?:.
While at it, fix a typo in the comment.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>1 parent 80c78fb commit 322b86e
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3931 | 3931 | | |
3932 | 3932 | | |
3933 | 3933 | | |
3934 | | - | |
| 3934 | + | |
3935 | 3935 | | |
3936 | 3936 | | |
3937 | 3937 | | |
3938 | 3938 | | |
3939 | 3939 | | |
3940 | | - | |
| 3940 | + | |
3941 | 3941 | | |
3942 | 3942 | | |
3943 | 3943 | | |
3944 | 3944 | | |
3945 | | - | |
3946 | | - | |
| 3945 | + | |
3947 | 3946 | | |
3948 | 3947 | | |
3949 | 3948 | | |
| |||
0 commit comments