V4L/DVB (7120): videobuf lock is already initialized at videobuf-core.c
authorMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 31 Jan 2008 16:40:04 +0000 (13:40 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 18 Feb 2008 14:15:11 +0000 (11:15 -0300)
Removes the duplicated mutex_init code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/saa7146_vbi.c
drivers/media/common/saa7146_video.c

index c32dda973e928db5ed4fe3d1cf865b4e1cf7f235..bfbd5a841ebf9f621642b60d1ca0324a650c6b84 100644 (file)
@@ -413,7 +413,6 @@ static int vbi_open(struct saa7146_dev *dev, struct file *file)
                            V4L2_FIELD_SEQ_TB, // FIXME: does this really work?
                            sizeof(struct saa7146_buf),
                            file);
-       mutex_init(&fh->vbi_q.lock);
 
        init_timer(&fh->vbi_read_timeout);
        fh->vbi_read_timeout.function = vbi_read_timeout;
index c31ab480d8e1c8884bd8245dedcde72021a660aa..66fdbd0e6a6ddfe5ad7f5a6a72045e574db95d56 100644 (file)
@@ -1417,8 +1417,6 @@ static int video_open(struct saa7146_dev *dev, struct file *file)
                            sizeof(struct saa7146_buf),
                            file);
 
-       mutex_init(&fh->video_q.lock);
-
        return 0;
 }