OSDN Git Service

sgi-gru: simplify procfs code
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Apr 2018 15:47:15 +0000 (17:47 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commit978547c5fbc10775be3b561a3ce7e1e90612b9c8
tree9084c92a30863a8eb172a27421fca0d54eeadde0
parente7b087fc6bb60234bb6d84d73b74c1e9cf03d5b7
sgi-gru: simplify procfs code

Use remove_proc_subtree to remove the whole subtree on cleanup, and
unwind the registration loop into individual calls.  Switch to use
proc_create_seq where applicable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/misc/sgi-gru/gruprocfs.c