]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[WATCHDOG] Remove the redundant check for pwrite() in EP93XXX watchdog.
authorRobert P. J. Day <rpjday@mindspring.com>
Mon, 28 May 2007 18:51:29 +0000 (14:51 -0400)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 3 Jun 2007 13:21:36 +0000 (13:21 +0000)
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>
drivers/char/watchdog/ep93xx_wdt.c

index 01cf123b1616db2eebda898dafbd167e994d8099..0e4787a0bb87d7d8af46161274b669f33970371b 100644 (file)
@@ -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;