]> git.baikalelectronics.ru Git - kernel.git/commit
zoran: don't bother with struct file * in zoran_map
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 09:49:40 +0000 (13:49 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 20:01:10 +0000 (00:01 +0400)
commit765b537da542a8d508fdab8a449fa72fa962a785
tree9b4c29a45093004f734094f6246f5b4f543db936
parent3bc94680bb0064d6c56bfb182e34702f3d030aa6
zoran: don't bother with struct file * in zoran_map

all we need it for is file->private_data, which is assign-once, already
assigned by that point and, incidentally, its value is already in use
by zoran ->mmap() anyway.  So just store that pointer instead...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/media/video/zoran/zoran.h
drivers/media/video/zoran/zoran_driver.c