mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
[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: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
199ab8fed4
commit
534d032601
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user