summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/vivi.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-12-16 17:06:33 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 19:10:32 +0100
commit7de0b8739f9b7856d2c3aa96e50e851283eeb24a (patch)
tree70ed4f3f0ef3f4fbfcfe42ee03122a170301bd96 /drivers/media/video/vivi.c
parentV4L/DVB: use correct size in put_v4l2_window32() (diff)
downloadlinux-7de0b8739f9b7856d2c3aa96e50e851283eeb24a.tar.xz
linux-7de0b8739f9b7856d2c3aa96e50e851283eeb24a.zip
V4L/DVB (13944): vivi: Fix test of unsigned in vivi_create_instance()
video_nr is unsigned so the test did not work. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/vivi.c')
-rw-r--r--drivers/media/video/vivi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index 37632a064966..cdbe70385c12 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -1371,7 +1371,7 @@ static int __init vivi_create_instance(int inst)
/* Now that everything is fine, let's add it to device list */
list_add_tail(&dev->vivi_devlist, &vivi_devlist);
- if (video_nr >= 0)
+ if (video_nr != -1)
video_nr++;
dev->vfd = vfd;