Skip to content

Commit dcdb027

Browse files
Stephen Hemmingerdavem330
authored andcommitted
[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>
1 parent e49e76d commit dcdb027

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

‎net/atm/clip.c‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ static struct file_operations arp_seq_fops = {
976976

977977
static int __init atm_clip_init(void)
978978
{
979+
struct proc_dir_entry *p;
979980
neigh_table_init(&clip_tbl);
980981

981982
clip_tbl_hook = &clip_tbl;
@@ -985,15 +986,9 @@ static int __init atm_clip_init(void)
985986

986987
setup_timer(&idle_timer, idle_timer_check, 0);
987988

988-
#ifdef CONFIG_PROC_FS
989-
{
990-
struct proc_dir_entry *p;
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
989+
p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
990+
if (p)
991+
p->proc_fops = &arp_seq_fops;
997992

998993
return 0;
999994
}

0 commit comments

Comments
 (0)