From: Oleg Nesterov Date: Wed, 11 Sep 2013 21:20:19 +0000 (-0700) Subject: mm: do_mmap_pgoff: cleanup the usage of file_inode() X-Git-Tag: v3.12-rc1~52^2~265 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=077bf22b5cf233863826afbfa4af9b18650a832d;p=pandora-kernel.git 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 Cc: Hugh Dickins Cc: Al Viro Cc: Colin Cross Cc: David Rientjes Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed