Commit b2b9b0a6 authored by Cristiane Naves's avatar Cristiane Naves Committed by Mauro Carvalho Chehab
Browse files

media: staging: media: allegro-dvt: remove bool comparison



Bool tests don't need comparisons. Issue found by coccicheck.

Signed-off-by: default avatarCristiane Naves <cristianenavescardoso09@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent cb639a6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {