Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
ray_cs: use remove_proc_subtree to simplify procfs code
Browse files Browse the repository at this point in the history
Use remove_proc_subtree to remove the whole subtree

Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
YueHaibing authored and Kalle Valo committed Apr 25, 2019
1 parent 444efbd commit 3b6edcb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/wireless/ray_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2820,11 +2820,7 @@ static void __exit exit_ray_cs(void)
pr_debug("ray_cs: cleanup_module\n");

#ifdef CONFIG_PROC_FS
remove_proc_entry("driver/ray_cs/ray_cs", NULL);
remove_proc_entry("driver/ray_cs/essid", NULL);
remove_proc_entry("driver/ray_cs/net_type", NULL);
remove_proc_entry("driver/ray_cs/translate", NULL);
remove_proc_entry("driver/ray_cs", NULL);
remove_proc_subtree("driver/ray_cs", NULL);
#endif

pcmcia_unregister_driver(&ray_driver);
Expand Down

0 comments on commit 3b6edcb

Please sign in to comment.