Skip to content

Commit

Permalink
V4L/DVB (13944): vivi: Fix test of unsigned in vivi_create_instance()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent f2e6c6a commit 7de0b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7de0b87

Please sign in to comment.