summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-05-28 20:55:06 +0200
committerWim Van Sebroeck <wim@iguana.be>2007-06-03 15:18:14 +0200
commit4cf85459e0db0b2ffd6c4112594b695bdbcff10f (patch)
treebb8b8fc336ad49abde8c280c3d3c1e9366a84fac
parent[WATCHDOG] clean-up watchdog documentation (diff)
downloadlinux-4cf85459e0db0b2ffd6c4112594b695bdbcff10f.tar.xz
linux-4cf85459e0db0b2ffd6c4112594b695bdbcff10f.zip
[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>
-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
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;