aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src/switch-core.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-06-26 20:43:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-06-26 20:43:41 +0000
commit3bc5d6887d903c78026a7e9def67f349ca119911 (patch)
tree27936dc85f4d3dcb24795df04b6753d87810af74 /package/switch/src/switch-core.c
parent17fee1112f0f8760b12c1959cff3a2dc8c1aaa68 (diff)
downloadmaster-187ad058-3bc5d6887d903c78026a7e9def67f349ca119911.tar.gz
master-187ad058-3bc5d6887d903c78026a7e9def67f349ca119911.tar.bz2
master-187ad058-3bc5d6887d903c78026a7e9def67f349ca119911.zip
remove linux 2.4 support from several packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21954 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src/switch-core.c')
-rw-r--r--package/switch/src/switch-core.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/package/switch/src/switch-core.c b/package/switch/src/switch-core.c
index 9a8989d7f8..e4a3b10ad5 100644
--- a/package/switch/src/switch-core.c
+++ b/package/switch/src/switch-core.c
@@ -68,12 +68,7 @@ static struct file_operations switch_proc_fops = {
static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff_t *ppos)
{
-#ifdef LINUX_2_4
- struct inode *inode = file->f_dentry->d_inode;
- struct proc_dir_entry *dent = inode->u.generic_ip;
-#else
struct proc_dir_entry *dent = PDE(file->f_dentry->d_inode);
-#endif
char *page;
int len = 0;
@@ -105,12 +100,7 @@ static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff
static ssize_t switch_proc_write(struct file *file, const char *buf, size_t count, void *data)
{
-#ifdef LINUX_2_4
- struct inode *inode = file->f_dentry->d_inode;
- struct proc_dir_entry *dent = inode->u.generic_ip;
-#else
struct proc_dir_entry *dent = PDE(file->f_dentry->d_inode);
-#endif
char *page;
int ret = -EINVAL;