Commit dcdb0275 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[ATM] clip: get rid of PROC_FS ifdef

Don't need the ifdef here since create_proc_entry() is stubbed to
always return NULL.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e49e76db
...@@ -976,6 +976,7 @@ static struct file_operations arp_seq_fops = { ...@@ -976,6 +976,7 @@ static struct file_operations arp_seq_fops = {
static int __init atm_clip_init(void) static int __init atm_clip_init(void)
{ {
struct proc_dir_entry *p;
neigh_table_init(&clip_tbl); neigh_table_init(&clip_tbl);
clip_tbl_hook = &clip_tbl; clip_tbl_hook = &clip_tbl;
...@@ -985,15 +986,9 @@ static int __init atm_clip_init(void) ...@@ -985,15 +986,9 @@ static int __init atm_clip_init(void)
setup_timer(&idle_timer, idle_timer_check, 0); setup_timer(&idle_timer, idle_timer_check, 0);
#ifdef CONFIG_PROC_FS p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
{ if (p)
struct proc_dir_entry *p; p->proc_fops = &arp_seq_fops;
p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
if (p)
p->proc_fops = &arp_seq_fops;
}
#endif
return 0; return 0;
} }
......
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