From: Roel Kluin Date: Wed, 16 Dec 2009 16:06:33 +0000 (-0300) Subject: V4L/DVB (13944): vivi: Fix test of unsigned in vivi_create_instance() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7de0b8739f9b7856d2c3aa96e50e851283eeb24a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 37632a06496..cdbe70385c1 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;