]> git.baikalelectronics.ru Git - kernel.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)
commite3fff910d34b63ae65a31d229b69189229bcd307
tree97b2b327e036c0001e6a597da1f7802a226f1453
parent5e392784f6d390ddfd93337a9f03a9a56bb7a6ac
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