From e74a94f114e8212725995a01b329e65671a7986a Mon Sep 17 00:00:00 2001 From: thomasl Date: Fri, 21 Nov 2014 15:29:27 +0000 Subject: [PATCH] remove kernel 2.6 coditional code git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6075 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/LAYER2/openair2_proc.c | 10 ---------- 1 file changed, 10 deletions(-) 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