Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Robert P. J. Day and committed by
Paul Mackerras
32efddf8 1f945a86

-10
-10
drivers/char/briq_panel.c
··· 91 91 unsigned short c; 92 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 94 if (!vfd_is_open) 100 95 return -ENODEV; 101 96 ··· 133 138 { 134 139 size_t indx = len; 135 140 int i, esc = 0; 136 - 137 - #if 0 /* Can't seek (pwrite) on this device */ 138 - if (ppos != &file->f_pos) 139 - return -ESPIPE; 140 - #endif 141 141 142 142 if (!vfd_is_open) 143 143 return -EBUSY;