Skip to content

Commit

Permalink
[PATCH] v4l: 814: cleanup dev assignment
Browse files Browse the repository at this point in the history
- Cleanup dev assignment

Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Markus Rechberger authored and Linus Torvalds committed Nov 9, 2005
1 parent 9c75541 commit 86bb4a2
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,20 +357,10 @@ static void em2820_release_resources(struct em2820 *dev)
* em2820_v4l2_close()
* stops streaming and deallocates all resources allocated by the v4l2 calls and ioctls
*/
static int em2820_v4l2_close(struct inode *inode, struct file *file)
static int em2820_v4l2_close(struct inode *inode, struct file *filp)
{
int errCode;
int minor = iminor(inode);
struct em2820 *h,*dev = NULL;
struct list_head *list;

list_for_each(list,&em2820_devlist) {
h = list_entry(list, struct em2820, devlist);
if (h->vdev->minor == minor) {
dev = h;
}
}

struct em2820 *dev=filp->private_data;

em2820_videodbg("users=%d", dev->users);

Expand Down

0 comments on commit 86bb4a2

Please sign in to comment.