Skip to content

Commit

Permalink
[ARM SMP] mpcore_wdt bogus fpos check
Browse files Browse the repository at this point in the history
drivers/char/watchdog/mpcore_wdt.c write function contains a check for
(ppos != &file->f_pos). Such check used to make sense when a pointer to
file->f_pos was handed by vfs_write(), not a copy of it as it stands
now.

Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Marcelo Tosatti authored and Russell King committed Dec 5, 2005
1 parent db20da3 commit 9ddf61b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/char/watchdog/mpcore_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ static ssize_t mpcore_wdt_write(struct file *file, const char *data, size_t len,
{
struct mpcore_wdt *wdt = file->private_data;

/* Can't seek (pwrite) on this device */
if (ppos != &file->f_pos)
return -ESPIPE;

/*
* Refresh the timer.
*/
Expand Down

0 comments on commit 9ddf61b

Please sign in to comment.