projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2e6c6a
)
V4L/DVB (13944): vivi: Fix test of unsigned in vivi_create_instance()
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 16 Dec 2009 16:06:33 +0000
(13:06 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:32 +0000
(15:10 -0300)
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>
drivers/media/video/vivi.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/vivi.c
b/drivers/media/video/vivi.c
index
37632a0
..
cdbe703
100644
(file)
--- 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;