Skip to content

Commit

Permalink
V4L/DVB (7120): videobuf lock is already initialized at videobuf-core.c
Browse files Browse the repository at this point in the history
Removes the duplicated mutex_init code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Feb 18, 2008
1 parent 0ed4a6e commit ce3a35d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/media/common/saa7146_vbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/common/saa7146_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ce3a35d

Please sign in to comment.