diff --git a/fs/proc/base.c b/fs/proc/base.c index e34c3c33b2de5e948461d4f76360d619de39e938..bc15df390ec49c47be7ac4b0ae1030d806b1db90 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -854,10 +854,6 @@ static ssize_t mem_read(struct file * file, char __user * buf, return ret; } -#define mem_write NULL - -#ifndef mem_write -/* This is a security hazard */ static ssize_t mem_write(struct file * file, const char __user *buf, size_t count, loff_t *ppos) { @@ -914,7 +910,6 @@ static ssize_t mem_write(struct file * file, const char __user *buf, out_no_task: return copied; } -#endif loff_t mem_lseek(struct file *file, loff_t offset, int orig) {