aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-07 05:09:26 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-07 05:09:26 -0700
commit2f90403a2d4c5021726c89c3e66e4f59096e0840 (patch)
treecd437722cb8be503ad84ead6afa05b515c183ddc /arch
parentde75755875178ddb7adc02cb5d62f8c497dbe8e2 (diff)
downloadhistory-2f90403a2d4c5021726c89c3e66e4f59096e0840.tar.gz
The seq_file code already disabled pread/pwrite access,
no need for the mtrr code to check any more.
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/cpu/mtrr/if.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/mtrr/if.c b/arch/i386/kernel/cpu/mtrr/if.c
index 4f53d52de5fcfc..0946844217b9cc 100644
--- a/arch/i386/kernel/cpu/mtrr/if.c
+++ b/arch/i386/kernel/cpu/mtrr/if.c
@@ -101,9 +101,6 @@ mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos)
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
- /* Can't seek (pwrite) on this device */
- if (ppos != &file->f_pos)
- return -ESPIPE;
memset(line, 0, LINE_SIZE);
if (len > LINE_SIZE)
len = LINE_SIZE;