提交 a9e8bb5b 编写于 作者: R Robert P. J. Day 提交者: Wim Van Sebroeck

[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: NRobert P. J. Day <rpjday@mindspring.com>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 4cf85459
......@@ -107,10 +107,6 @@ static ssize_t
ep93xx_wdt_write(struct file *file, const char __user *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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册