mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 01:21:28 +00:00
[WATCHDOG] Remove the redundant check for pwrite() in EP93XXX watchdog.
Remove the redundant check for pwrite(), given that the open() routine already invokes nonseekable_open(). Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
4cf85459e0
commit
a9e8bb5b60
@ -107,10 +107,6 @@ static ssize_t
|
||||
ep93xx_wdt_write(struct file *file, const char __user *data, size_t len,
|
||||
loff_t *ppos)
|
||||
{
|
||||
/* Can't seek (pwrite) on this device */
|
||||
if (*ppos != file->f_pos)
|
||||
return -ESPIPE;
|
||||
|
||||
if (len) {
|
||||
if (!nowayout) {
|
||||
size_t i;
|
||||
|
Loading…
Reference in New Issue
Block a user