diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-04-17 14:15:24 -0700 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-04-20 14:40:14 +0200 |
commit | ce8ed12c95eeb628febfff04abe9fae4d6f410bf (patch) | |
tree | 698d0ccf0dbbc229d1410b2842c5b30ae6ef421a /utils/libv4l2util/v4l2_driver.c | |
parent | 06dc2b0c0e9705d5d4607c89dfc7decf714a68d6 (diff) |
treewide: do not use return after else
Found with clang-tidy's readability-else-after-return
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: split '} if () {' into two lines]
[hverkuil-cisco@xs4all.nl: split 'if () continue; else return -1;' into two lines]
Diffstat (limited to 'utils/libv4l2util/v4l2_driver.c')
-rw-r--r-- | utils/libv4l2util/v4l2_driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/libv4l2util/v4l2_driver.c b/utils/libv4l2util/v4l2_driver.c index 67982047..e21e85d8 100644 --- a/utils/libv4l2util/v4l2_driver.c +++ b/utils/libv4l2util/v4l2_driver.c @@ -436,7 +436,8 @@ int v4l2_gettryset_fmt_cap (struct v4l2_driver *drv, enum v4l2_direction dir, perror("VIDIOC_G_FMT failed\n"); } return ret; - } else if (dir & (~(V4L2_TRY|V4L2_SET)) ) { + } + if (dir & (~(V4L2_TRY | V4L2_SET)) ) { perror ("Invalid direction\n"); return EINVAL; } |