]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: do_mmap_pgoff: cleanup the usage of file_inode()
authorOleg Nesterov <oleg@redhat.com>
Thu, 18 Jul 2013 23:56:42 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:42 +0000 (09:56 +1000)
commit6e80c4e9975ee012627594c6952904aaeea72c6f
tree75d4fb4d943b34f202da4b1a1f75adbb94af41a0
parent10a6a0a6d4a44d41d5f4987c2acb01c886f25db0
mm: do_mmap_pgoff: cleanup the usage of file_inode()

Simple cleanup.  Move "struct inode *inode" variable into "if (file)"
block to simplify the code and avoid the unnecessary check.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Colin Cross <ccross@android.com>
Cc: David Rientjes <rientjes@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c