Commit 4cf85459 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Wim Van Sebroeck

[WATCHDOG] Remove the redundant check for pwrite() in pnx4008 watchdog.

Given that the open routine already calls nonseekable_open(), remove
the redundant check for pwrite().
Signed-off-by: default avatarRobert P. J. Day <rpjday@mindspring.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 4d389dce
...@@ -148,10 +148,6 @@ static ssize_t ...@@ -148,10 +148,6 @@ static ssize_t
pnx4008_wdt_write(struct file *file, const char *data, size_t len, pnx4008_wdt_write(struct file *file, const char *data, size_t len,
loff_t * ppos) loff_t * ppos)
{ {
/* Can't seek (pwrite) on this device */
if (ppos != &file->f_pos)
return -ESPIPE;
if (len) { if (len) {
if (!nowayout) { if (!nowayout) {
size_t i; size_t i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment