]> 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)
commit6049a7e57511d6e37c20b382d4d32df57ec73421
tree9b4c29a45093004f734094f6246f5b4f543db936
parent3cdafefb0079358d8dfe725579669cce48cf65fd
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