diff options
author | Markus Rechberger <mrechberger@gmail.com> | 2005-11-09 00:37:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:22 -0500 |
commit | 86bb4a215d152111f20daeb2a530f064afee8542 (patch) | |
tree | 221b2ff35d4dc2db38bb96b62c61dd24a412946e /drivers/media | |
parent | 9c75541fc97252e605b7bc8f9b09f816483e22fb (diff) |
[PATCH] v4l: 814: cleanup dev assignment
- 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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index daa4387a2296..16a6d2da7391 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -357,20 +357,10 @@ static void em2820_release_resources(struct em2820 *dev) | |||
357 | * em2820_v4l2_close() | 357 | * em2820_v4l2_close() |
358 | * stops streaming and deallocates all resources allocated by the v4l2 calls and ioctls | 358 | * stops streaming and deallocates all resources allocated by the v4l2 calls and ioctls |
359 | */ | 359 | */ |
360 | static int em2820_v4l2_close(struct inode *inode, struct file *file) | 360 | static int em2820_v4l2_close(struct inode *inode, struct file *filp) |
361 | { | 361 | { |
362 | int errCode; | 362 | int errCode; |
363 | int minor = iminor(inode); | 363 | struct em2820 *dev=filp->private_data; |
364 | struct em2820 *h,*dev = NULL; | ||
365 | struct list_head *list; | ||
366 | |||
367 | list_for_each(list,&em2820_devlist) { | ||
368 | h = list_entry(list, struct em2820, devlist); | ||
369 | if (h->vdev->minor == minor) { | ||
370 | dev = h; | ||
371 | } | ||
372 | } | ||
373 | |||
374 | 364 | ||
375 | em2820_videodbg("users=%d", dev->users); | 365 | em2820_videodbg("users=%d", dev->users); |
376 | 366 | ||