Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67e27c74 authored by Hans Petter Selasky's avatar Hans Petter Selasky Committed by Mauro Carvalho Chehab
Browse files

[media] Make nchg variable signed because the code compares this variable against negative values



The sonixj driver compares the value for nchg with:
 		if (sd->nchg < -6 || sd->nchg >= 12) {

With u8, negative values won't work.

Signed-off-by: default avatarHans Petter Selasky <hselasky@c2i.net>
Acked-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6c20c635
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ struct sd {

	u32 pktsz;			/* (used by pkt_scan) */
	u16 npkt;
	u8 nchg;
	s8 nchg;
	s8 short_mark;

	u8 quality;			/* image quality */