]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
proc: drop several "PDE valid/invalid" checks
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 29 Apr 2008 08:01:41 +0000 (01:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:18 +0000 (08:06 -0700)
commit5e971dce0b2f6896e02372512df0d1fb0bfe2d55
treebce0356470331c49c92b87042103034e55beaa8e
parent7cee4e00e0f8aa7290266382ea903a5a1b92c9a1
proc: drop several "PDE valid/invalid" checks

proc-misc code is noticeably full of "if (de)" checks when PDE passed is
always valid.  Remove them.

Addition of such check in proc_lookup_de() is for failed lookup case.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/generic.c
fs/proc/inode.c