aboutsummaryrefslogtreecommitdiffstats
path: root/utils/common/v4l-stream.c
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-04-17 14:15:24 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-04-20 14:40:14 +0200
commitce8ed12c95eeb628febfff04abe9fae4d6f410bf (patch)
tree698d0ccf0dbbc229d1410b2842c5b30ae6ef421a /utils/common/v4l-stream.c
parent06dc2b0c0e9705d5d4607c89dfc7decf714a68d6 (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/common/v4l-stream.c')
-rw-r--r--utils/common/v4l-stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/common/v4l-stream.c b/utils/common/v4l-stream.c
index c2f2abce..44ee137e 100644
--- a/utils/common/v4l-stream.c
+++ b/utils/common/v4l-stream.c
@@ -88,7 +88,8 @@ void rle_decompress(__u8 *b, unsigned size, unsigned rle_size, unsigned bpl)
i += 4;
next_line = dst + bpl / 4;
continue;
- } else if (v == magic_x) {
+ }
+ if (v == magic_x) {
v = *++p;
n = ntohl(*++p);
i += 8;

Privacy Policy