fix gcc4-related bug in switch-robo
[openwrt/staging/dedeckeh.git] / openwrt / target / linux / package / switch / src / switch-core.c
index 82166463702d09df616769a268b42e24e01f1319..6b59b9ba24a142129d46bcb5e3fc53775cd8eb75 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