]> rtime.felk.cvut.cz Git - linux-imx.git/commit
procfs: Clean up huge if-statement in __proc_file_read()
authorDavid Howells <dhowells@redhat.com>
Thu, 4 Apr 2013 15:32:28 +0000 (16:32 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 19:16:50 +0000 (15:16 -0400)
commitad147d011f4e9d4e4309f7974fd19c7f875ccb14
tree97b2b327e036c0001e6a597da1f7802a226f1453
parentf805442e130c6eeb6c25bc5c3b3cefc27ab6dcec
procfs: Clean up huge if-statement in __proc_file_read()

Switch huge if-statement in __proc_file_read() around.  This then puts the
single line loop break immediately after the if-statement and allows us to
de-indent the huge comment and make it take fewer lines.  The code following
the if-statement then follows naturally from the call to dp->read_proc().

Signed-off-by: David Howells <dhowells@redhat.com>
fs/proc/generic.c