vivi: Fix test of unsigned in vivi_create_instance()
PATCH 1/1 vivi: Fix test of unsigned in vivi_create_instance()
video_nr is unsigned so the test did not work.
Signed-off-by Roel Kluin <[email protected]>
---
Found using coccinelle: http://coccinelle.lip6.fr/
drivers/media/video/vivi.c +1 -1
@@ -1375,7 +1375,7 @@ static int __init vivi_create_instance(int inst)snprintf (vfd->name,sizeof (vfd->name),"%s (%i)" , vivi_template.name, vfd->num); -if (video_nr >=0 ) +if (video_nr !=-1 ) video_nr++; dev->vfd = vfd;