diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2012-07-19 15:45:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 19:31:56 -0400 |
commit | 1a17a942cd0fe430540e9ead2e57eb358b6963bd (patch) | |
tree | d424506d84809323749f191c169c1be8aba8dfdd /drivers/media/video/vivi.c | |
parent | 6992c0807517b5736c80983c4881d3f9ae3ab20f (diff) |
[media] vivi: remove pointless video_nr++
Remove the pointless video_nr++. It doesn't do anything useful and it has
the unexpected side-effect of changing the video_nr module option, so
cat /sys/module/vivi/parameters/video_nr gives a different value back
then what was specified with modprobe.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.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.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 1e8c4f3ab602..679e329ffa15 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c | |||
@@ -1330,9 +1330,6 @@ static int __init vivi_create_instance(int inst) | |||
1330 | /* Now that everything is fine, let's add it to device list */ | 1330 | /* Now that everything is fine, let's add it to device list */ |
1331 | list_add_tail(&dev->vivi_devlist, &vivi_devlist); | 1331 | list_add_tail(&dev->vivi_devlist, &vivi_devlist); |
1332 | 1332 | ||
1333 | if (video_nr != -1) | ||
1334 | video_nr++; | ||
1335 | |||
1336 | v4l2_info(&dev->v4l2_dev, "V4L2 device registered as %s\n", | 1333 | v4l2_info(&dev->v4l2_dev, "V4L2 device registered as %s\n", |
1337 | video_device_node_name(vfd)); | 1334 | video_device_node_name(vfd)); |
1338 | return 0; | 1335 | return 0; |