diff options
author | Cristiane Naves <cristianenavescardoso09@gmail.com> | 2019-10-27 02:16:19 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2019-11-05 15:08:36 +0300 |
commit | b2b9b0a669b5947eff8c6f87c0fb1bdc652bb88f (patch) | |
tree | 32663d1f5a4650dad2a8327eef63f40b772f7526 | |
parent | cb639a6f4a0ca7b8ada51a1ced71583b2f3a4bef (diff) | |
download | linux-b2b9b0a669b5947eff8c6f87c0fb1bdc652bb88f.tar.xz |
media: staging: media: allegro-dvt: remove bool comparison
Bool tests don't need comparisons. Issue found by coccicheck.
Signed-off-by: Cristiane Naves <cristianenavescardoso09@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r-- | drivers/staging/media/allegro-dvt/nal-h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/allegro-dvt/nal-h264.c b/drivers/staging/media/allegro-dvt/nal-h264.c index 4e14b77851e1..bd48b8883572 100644 --- a/drivers/staging/media/allegro-dvt/nal-h264.c +++ b/drivers/staging/media/allegro-dvt/nal-h264.c @@ -235,7 +235,7 @@ static inline int rbsp_write_bit(struct rbsp *rbsp, bool value) rbsp->pos++; - if (value == 1 || + if (value || (rbsp->num_consecutive_zeros < 7 && (rbsp->pos % 8 == 0))) { rbsp->num_consecutive_zeros = 0; } else { |