Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afa76b39 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (6005): Initialize filp->private_data only once in em28xx_v4l2_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: default avatarRolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent be848fe3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);