diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-07-09 14:37:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-07-10 08:03:26 -0400 |
commit | 32efddf8526879a77d58aa635c5d5dd45bb87fd9 (patch) | |
tree | cf0f8b8bde2a22476f2e3b8f148d2b1fd5697618 /drivers/char/briq_panel.c | |
parent | 1f945a86a8250b66fda47cf1fc8f3daf5d0f8969 (diff) |
[POWERPC] Remove dead code for preventing pread() and pwrite() calls
Remove the deactivated code for checking for pread() and pwrite()
calls on the PPC-based BRIQ.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/char/briq_panel.c')
-rw-r--r-- | drivers/char/briq_panel.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/char/briq_panel.c b/drivers/char/briq_panel.c index ed53f541d9e8..b6f2639f903d 100644 --- a/drivers/char/briq_panel.c +++ b/drivers/char/briq_panel.c | |||
@@ -91,11 +91,6 @@ static ssize_t briq_panel_read(struct file *file, char __user *buf, size_t count | |||
91 | unsigned short c; | 91 | unsigned short c; |
92 | unsigned char cp; | 92 | unsigned char cp; |
93 | 93 | ||
94 | #if 0 /* Can't seek (pread) on this device */ | ||
95 | if (ppos != &file->f_pos) | ||
96 | return -ESPIPE; | ||
97 | #endif | ||
98 | |||
99 | if (!vfd_is_open) | 94 | if (!vfd_is_open) |
100 | return -ENODEV; | 95 | return -ENODEV; |
101 | 96 | ||
@@ -139,11 +134,6 @@ static ssize_t briq_panel_write(struct file *file, const char __user *buf, size_ | |||
139 | size_t indx = len; | 134 | size_t indx = len; |
140 | int i, esc = 0; | 135 | int i, esc = 0; |
141 | 136 | ||
142 | #if 0 /* Can't seek (pwrite) on this device */ | ||
143 | if (ppos != &file->f_pos) | ||
144 | return -ESPIPE; | ||
145 | #endif | ||
146 | |||
147 | if (!vfd_is_open) | 137 | if (!vfd_is_open) |
148 | return -EBUSY; | 138 | return -EBUSY; |
149 | 139 | ||