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

Commit 534d0326 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] usbvision-core: fix a warning



drivers/media/usb/usbvision/usbvision-core.c:1749:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 199ab8fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ enum {

/* This macro restricts an int variable to an inclusive range */
#define RESTRICT_TO_RANGE(v, mi, ma) \
	{ if ((v) < (mi)) (v) = (mi); else if ((v) > (ma)) (v) = (ma); }
	{ if (((int)v) < (mi)) (v) = (mi); else if ((v) > (ma)) (v) = (ma); }

/*
 * We use macros to do YUV -> RGB conversion because this is