aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-05-28 14:51:29 -0400
committerWim Van Sebroeck <wim@iguana.be>2007-06-03 09:21:36 -0400
commita9e8bb5b60a9f5c10d38aebc13f8a3d2e1ffc0e7 (patch)
tree8090cfe1bf554f6c96d5465dff3af263355a8acd
parent4cf85459e0db0b2ffd6c4112594b695bdbcff10f (diff)
[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>
-rw-r--r--drivers/char/watchdog/ep93xx_wdt.c4
1 files changed, 0 insertions, 4 deletions
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
107ep93xx_wdt_write(struct file *file, const char __user *data, size_t len, 107ep93xx_wdt_write(struct file *file, const char __user *data, size_t len,
108 loff_t *ppos) 108 loff_t *ppos)
109{ 109{
110 /* Can't seek (pwrite) on this device */
111 if (*ppos != file->f_pos)
112 return -ESPIPE;
113
114 if (len) { 110 if (len) {
115 if (!nowayout) { 111 if (!nowayout) {
116 size_t i; 112 size_t i;