From: yan Date: Fri, 5 Oct 2012 00:15:41 +0000 (-0700) Subject: proc: no need to initialize proc_inode->fd in proc_get_inode() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~12^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e06936057674ef3f2bd0b398a32ddc512642992;p=pandora-kernel.git proc: no need to initialize proc_inode->fd in proc_get_inode() proc_get_inode() obtains the inode via a call to iget_locked(). iget_locked() calls alloc_inode() which will call proc_alloc_inode() which clears proc_inode.fd, so there is no need to clear this field in proc_get_inode(). If iget_locked() instead found the inode via find_inode_fast(), that inode will not have I_NEW set so this change has no effect. Signed-off-by: yan Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed