X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a4c84e4a56fe959370be44da248c89bd076e3703..902fd8c8a3efe49f53b10224c33b431789bf64d3:/target/linux/package/switch/src/switch-core.c diff --git a/target/linux/package/switch/src/switch-core.c b/target/linux/package/switch/src/switch-core.c index 821664637..6b59b9ba2 100644 --- a/target/linux/package/switch/src/switch-core.c +++ b/target/linux/package/switch/src/switch-core.c @@ -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