mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 01:09:08 +00:00
[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>
This commit is contained in:
parent
1f945a86a8
commit
32efddf852
@ -91,11 +91,6 @@ static ssize_t briq_panel_read(struct file *file, char __user *buf, size_t count
|
|||||||
unsigned short c;
|
unsigned short c;
|
||||||
unsigned char cp;
|
unsigned char cp;
|
||||||
|
|
||||||
#if 0 /* Can't seek (pread) on this device */
|
|
||||||
if (ppos != &file->f_pos)
|
|
||||||
return -ESPIPE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!vfd_is_open)
|
if (!vfd_is_open)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
@ -139,11 +134,6 @@ static ssize_t briq_panel_write(struct file *file, const char __user *buf, size_
|
|||||||
size_t indx = len;
|
size_t indx = len;
|
||||||
int i, esc = 0;
|
int i, esc = 0;
|
||||||
|
|
||||||
#if 0 /* Can't seek (pwrite) on this device */
|
|
||||||
if (ppos != &file->f_pos)
|
|
||||||
return -ESPIPE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!vfd_is_open)
|
if (!vfd_is_open)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user