Commit 9dd0f896 authored by Augusto Mecking Caringi's avatar Augusto Mecking Caringi Committed by David S. Miller

net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS

This patch fixes the following warnings when CONFIG_PROC_FS is not set:

linux/net/atm/lec.c: In function ‘lane_module_cleanup’:
linux/net/atm/lec.c:1062:27: error: ‘atm_proc_root’ undeclared (first
use in this function)
remove_proc_entry("lec", atm_proc_root);
                           ^
linux/net/atm/lec.c:1062:27: note: each undeclared identifier is
reported only once for each function it appears in
Signed-off-by: default avatarAugusto Mecking Caringi <augustocaringi@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b52416a
...@@ -1059,7 +1059,9 @@ static void __exit lane_module_cleanup(void) ...@@ -1059,7 +1059,9 @@ static void __exit lane_module_cleanup(void)
{ {
int i; int i;
#ifdef CONFIG_PROC_FS
remove_proc_entry("lec", atm_proc_root); remove_proc_entry("lec", atm_proc_root);
#endif
deregister_atm_ioctl(&lane_ioctl_ops); deregister_atm_ioctl(&lane_ioctl_ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment