aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-05-28 14:55:06 -0400
committerWim Van Sebroeck <wim@iguana.be>2007-06-03 09:18:14 -0400
commit4cf85459e0db0b2ffd6c4112594b695bdbcff10f (patch)
treebb8b8fc336ad49abde8c280c3d3c1e9366a84fac /drivers
parent4d389dcea8543161c3bb1e26f1c2ffb7e0822ff1 (diff)
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/watchdog/pnx4008_wdt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/char/watchdog/pnx4008_wdt.c b/drivers/char/watchdog/pnx4008_wdt.c
index 5991add702b0..22f8873dd092 100644
--- a/drivers/char/watchdog/pnx4008_wdt.c
+++ b/drivers/char/watchdog/pnx4008_wdt.c
@@ -148,10 +148,6 @@ static ssize_t
148pnx4008_wdt_write(struct file *file, const char *data, size_t len, 148pnx4008_wdt_write(struct file *file, const char *data, size_t len,
149 loff_t * ppos) 149 loff_t * ppos)
150{ 150{
151 /* Can't seek (pwrite) on this device */
152 if (ppos != &file->f_pos)
153 return -ESPIPE;
154
155 if (len) { 151 if (len) {
156 if (!nowayout) { 152 if (!nowayout) {
157 size_t i; 153 size_t i;