aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/usbvision
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 15:30:20 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 05:38:58 -0400
commit534d032601b1e274da0f0297c1312e79e56344a9 (patch)
treeb58a6d7a87a626db95acd92829f848c08e907380 /drivers/media/usb/usbvision
parent199ab8fed4dcbe86dad74b6ed8733ff4c500e6df (diff)
[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>
Diffstat (limited to 'drivers/media/usb/usbvision')
-rw-r--r--drivers/media/usb/usbvision/usbvision.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/usbvision/usbvision.h b/drivers/media/usb/usbvision/usbvision.h
index 43cf61fe4943..8a25876d72c6 100644
--- a/drivers/media/usb/usbvision/usbvision.h
+++ b/drivers/media/usb/usbvision/usbvision.h
@@ -167,7 +167,7 @@ enum {
167 167
168/* This macro restricts an int variable to an inclusive range */ 168/* This macro restricts an int variable to an inclusive range */
169#define RESTRICT_TO_RANGE(v, mi, ma) \ 169#define RESTRICT_TO_RANGE(v, mi, ma) \
170 { if ((v) < (mi)) (v) = (mi); else if ((v) > (ma)) (v) = (ma); } 170 { if (((int)v) < (mi)) (v) = (mi); else if ((v) > (ma)) (v) = (ma); }
171 171
172/* 172/*
173 * We use macros to do YUV -> RGB conversion because this is 173 * We use macros to do YUV -> RGB conversion because this is