summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorCristiane Naves <cristianenavescardoso09@gmail.com>2019-10-26 20:16:19 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-27 08:15:43 +0100
commit140cf83dbdc0780886ed32b792c6c88cde54dc6c (patch)
treef5adea06c069ae3a90f62144e3c001cf4ec9ddf5 /drivers
parent6d7e7c31ff9d67d10ea6bd0ea3410027ce065126 (diff)
downloadlinux-140cf83dbdc0780886ed32b792c6c88cde54dc6c.tar.bz2
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> Link: https://lore.kernel.org/r/20191026231619.GA14093@cristiane-Inspiron-5420 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-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 {