Skip to content

Commit

Permalink
V4L/DVB (6005): Initialize filp->private_data only once in em28xx_v4l…
Browse files Browse the repository at this point in the history
…2_open

Some lines later filp->private_data is initialized to dev again.
Since there are some checks that might fail in the mean time
keep the later version.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Rolf Eike Beer authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent be848fe commit afa76b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ static int em28xx_v4l2_open(struct inode *inode, struct file *filp)
if (NULL == dev)
return -ENODEV;

filp->private_data=dev;

em28xx_videodbg("open minor=%d type=%s users=%d\n",
minor,v4l2_type_names[dev->type],dev->users);

Expand Down

0 comments on commit afa76b3

Please sign in to comment.