aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiane Naves <cristianenavescardoso09@gmail.com>2019-10-26 20:16:19 -0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-11-01 11:44:38 +0100
commitd051ce07fd9843d9edcbf3c1c979281d50897305 (patch)
treef4b91f87e7bc930ef1a7242c05bd0b6aabc8044c
parent49e4691ed79db1d73baf2894f68f0fc153b2f19e (diff)
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>
-rw-r--r--drivers/staging/media/allegro-dvt/nal-h264.c2
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 {

Privacy Policy