From: Robert P. J. Day Date: Mon, 28 May 2007 18:51:29 +0000 (-0400) Subject: [WATCHDOG] Remove the redundant check for pwrite() in EP93XXX watchdog. X-Git-Tag: v2.6.23-rc1~509^2~19 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a9e8bb5b60a9f5c10d38aebc13f8a3d2e1ffc0e7;p=~emulex%2Finfiniband.git [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 Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/char/watchdog/ep93xx_wdt.c b/drivers/char/watchdog/ep93xx_wdt.c index 01cf123b161..0e4787a0bb8 100644 --- a/drivers/char/watchdog/ep93xx_wdt.c +++ b/drivers/char/watchdog/ep93xx_wdt.c @@ -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;