fix gcc4-related bug in switch-robo
[openwrt.git] / target / linux / package / switch / src / switch-core.c
index 8216646..6b59b9b 100644 (file)
@@ -68,13 +68,6 @@ static struct file_operations switch_proc_fops = {
        write: switch_proc_write
 };
 
-static inline char *strdup(char *str)
-{
-       char *new = kmalloc(strlen(str) + 1, GFP_KERNEL);
-       strcpy(new, str);
-       return new;
-}
-
 static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff_t *ppos)
 {
 #ifdef LINUX_2_4
This page took 0.025911 seconds and 4 git commands to generate.