Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ddf61bd authored by Marcelo Tosatti's avatar Marcelo Tosatti Committed by Russell King
Browse files

[ARM SMP] mpcore_wdt bogus fpos check



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: default avatarMarcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent db20da32
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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.
	 */