Browse Source

[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: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Robert P. J. Day 18 years ago
parent
commit
4cf85459e0
1 changed files with 0 additions and 4 deletions
  1. 0 4
      drivers/char/watchdog/pnx4008_wdt.c

+ 0 - 4
drivers/char/watchdog/pnx4008_wdt.c

@@ -148,10 +148,6 @@ static ssize_t
 pnx4008_wdt_write(struct file *file, const char *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;