mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 00:24:58 +08:00
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>
This commit is contained in:
parent
cb639a6f4a
commit
b2b9b0a669
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user