]> git.baikalelectronics.ru Git - kernel.git/commit
atm: simplify procfs code
authorChristoph Hellwig <hch@lst.de>
Sun, 15 Apr 2018 08:53:36 +0000 (10:53 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commit14f369d635e19fdd9eaa65514f0db74cb919cdeb
treed7275cba06b5e665fbc5b76a571abf2c4b39f8e2
parent44e66d4ba7a864c0f3a0a7a4cc010022e6c05ea0
atm: 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.

Also don't bother handling proc_create* failures - the driver works
perfectly fine without the proc files, and the cleanup will handle
missing files gracefully.

Signed-off-by: Christoph Hellwig <hch@lst.de>
net/atm/proc.c