mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 18:43:59 +08:00
V4L/DVB (7120): videobuf lock is already initialized at videobuf-core.c
Removes the duplicated mutex_init code. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
0ed4a6ea9d
commit
ce3a35d3c0
@ -413,7 +413,6 @@ static int vbi_open(struct saa7146_dev *dev, struct file *file)
|
|||||||
V4L2_FIELD_SEQ_TB, // FIXME: does this really work?
|
V4L2_FIELD_SEQ_TB, // FIXME: does this really work?
|
||||||
sizeof(struct saa7146_buf),
|
sizeof(struct saa7146_buf),
|
||||||
file);
|
file);
|
||||||
mutex_init(&fh->vbi_q.lock);
|
|
||||||
|
|
||||||
init_timer(&fh->vbi_read_timeout);
|
init_timer(&fh->vbi_read_timeout);
|
||||||
fh->vbi_read_timeout.function = vbi_read_timeout;
|
fh->vbi_read_timeout.function = vbi_read_timeout;
|
||||||
|
@ -1417,8 +1417,6 @@ static int video_open(struct saa7146_dev *dev, struct file *file)
|
|||||||
sizeof(struct saa7146_buf),
|
sizeof(struct saa7146_buf),
|
||||||
file);
|
file);
|
||||||
|
|
||||||
mutex_init(&fh->video_q.lock);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user