diff --git a/openair2/LAYER2/openair2_proc.c b/openair2/LAYER2/openair2_proc.c index 1f74b53279..5b72adc081 100644 --- a/openair2/LAYER2/openair2_proc.c +++ b/openair2/LAYER2/openair2_proc.c @@ -436,19 +436,13 @@ static struct proc_dir_entry *proc_openair2_root; */ int add_openair2_stats() { -#ifdef KERNEL_VERSION_GREATER_THAN_2629 struct proc_dir_entry *pde; -#endif proc_openair2_root = proc_mkdir("openair2",0); - #ifdef KERNEL_VERSION_GREATER_THAN_2629 // pde = proc_create_entry("lchan_stats", S_IFREG | S_IRUGO, proc_openair2_root); pde = proc_create_data("lchan_stats", S_IFREG | S_IRUGO, proc_openair2_root, NULL,openair2_stats_read); if (!pde) printk("[OPENAIR][ERROR] can't create proc entry !\n"); -#else - create_proc_info_entry("lchan_stats", S_IFREG | S_IRUGO, proc_openair2_root, openair2_stats_read); -#endif return 0; } @@ -461,11 +455,7 @@ void remove_openair_stats() if (proc_openair2_root) { printk("[OPENAIR][CLEANUP] Removing openair proc entry\n"); remove_proc_entry("lchan_stats", proc_openair2_root); -#ifdef KERNEL_VERSION_GREATER_THAN_2629 -#else - remove_proc_entry("openair2",&proc_root); -#endif; } } #endif