mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
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>
This commit is contained in:
parent
6d7e7c31ff
commit
140cf83dbd
@ -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