Commit a9e8bb5b60a9f5c10d38aebc13f8a3d2e1ffc0e7
Committed by
Wim Van Sebroeck
1 parent
4cf85459e0
Exists in
master
and in
7 other branches
[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>
Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff
drivers/char/watchdog/ep93xx_wdt.c
... | ... | @@ -107,10 +107,6 @@ |
107 | 107 | ep93xx_wdt_write(struct file *file, const char __user *data, size_t len, |
108 | 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 | 110 | if (len) { |
115 | 111 | if (!nowayout) { |
116 | 112 | size_t i; |