Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4cf85459e0db0b2ffd6c4112594b695bdbcff10f Commit: 4cf85459e0db0b2ffd6c4112594b695bdbcff10f Parent: 4d389dcea8543161c3bb1e26f1c2ffb7e0822ff1 Author: Robert P. J. Day <[EMAIL PROTECTED]> AuthorDate: Mon May 28 14:55:06 2007 -0400 Committer: Wim Van Sebroeck <[EMAIL PROTECTED]> CommitDate: Sun Jun 3 13:18:14 2007 +0000
[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 <[EMAIL PROTECTED]> Signed-off-by: Wim Van Sebroeck <[EMAIL PROTECTED]> --- drivers/char/watchdog/pnx4008_wdt.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/char/watchdog/pnx4008_wdt.c b/drivers/char/watchdog/pnx4008_wdt.c index 5991add..22f8873 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html