projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d389dc
)
[WATCHDOG] Remove the redundant check for pwrite() in pnx4008 watchdog.
author
Robert P. J. Day
<rpjday@mindspring.com>
Mon, 28 May 2007 18:55:06 +0000
(14:55 -0400)
committer
Wim Van Sebroeck
<wim@iguana.be>
Sun, 3 Jun 2007 13:18:14 +0000
(13:18 +0000)
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>
drivers/char/watchdog/pnx4008_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/char/watchdog/pnx4008_wdt.c
b/drivers/char/watchdog/pnx4008_wdt.c
index 5991add702b00e32efaf83711ebdb2a60dc8b832..22f8873dd092e72f5e25140eea95146ed817f4f1 100644
(file)
--- 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;