appletalk: use remove_proc_subtree to simplify procfs code
authorYueHaibing <yuehaibing@huawei.com>
Fri, 1 Mar 2019 02:57:56 +0000 (10:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Mar 2019 21:01:49 +0000 (13:01 -0800)
commite2bcd8b0ce6ee3410665765db0d44dd8b7e3b348
tree5cb2daa00019508726fc6836018caddbc7be8c6c
parent084e5bb16bd7dc2b551bbd9fb358bf73e03ee8d8
appletalk: use remove_proc_subtree to simplify procfs code

Use remove_proc_subtree to remove the whole subtree
on cleanup.Also do some cleanup.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/appletalk/atalk_proc.c