diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2006-04-14 19:00:25 -0400 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2006-04-14 19:00:25 -0400 | 
| commit | dcdb02752ff13a64433c36f2937a58d93ae7a19e (patch) | |
| tree | 559dc600a14fa2fac5997961c2628ee2c5c6d107 | |
| parent | e49e76db031fdfaadb4907a319ea3a1dc9d2925f (diff) | |
[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: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/atm/clip.c | 13 | 
1 files changed, 4 insertions, 9 deletions
| diff --git a/net/atm/clip.c b/net/atm/clip.c index 00dddba67c81..49258eed936d 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
| @@ -976,6 +976,7 @@ static struct file_operations arp_seq_fops = { | |||
| 976 | 976 | ||
| 977 | static int __init atm_clip_init(void) | 977 | static int __init atm_clip_init(void) | 
| 978 | { | 978 | { | 
| 979 | struct proc_dir_entry *p; | ||
| 979 | neigh_table_init(&clip_tbl); | 980 | neigh_table_init(&clip_tbl); | 
| 980 | 981 | ||
| 981 | clip_tbl_hook = &clip_tbl; | 982 | clip_tbl_hook = &clip_tbl; | 
| @@ -985,15 +986,9 @@ static int __init atm_clip_init(void) | |||
| 985 | 986 | ||
| 986 | setup_timer(&idle_timer, idle_timer_check, 0); | 987 | setup_timer(&idle_timer, idle_timer_check, 0); | 
| 987 | 988 | ||
| 988 | #ifdef CONFIG_PROC_FS | 989 | p = create_proc_entry("arp", S_IRUGO, atm_proc_root); | 
| 989 | { | 990 | if (p) | 
| 990 | struct proc_dir_entry *p; | 991 | p->proc_fops = &arp_seq_fops; | 
| 991 | |||
| 992 | p = create_proc_entry("arp", S_IRUGO, atm_proc_root); | ||
| 993 | if (p) | ||
| 994 | p->proc_fops = &arp_seq_fops; | ||
| 995 | } | ||
| 996 | #endif | ||
| 997 | 992 | ||
| 998 | return 0; | 993 | return 0; | 
| 999 | } | 994 | } | 
