summaryrefslogtreecommitdiff
path: root/target/linux/ar7/files
diff options
context:
space:
mode:
authorEugene Konev <ejka@imfi.kspu.ru>2007-09-14 04:46:34 +0000
committerEugene Konev <ejka@imfi.kspu.ru>2007-09-14 04:46:34 +0000
commitfbd19377fa60739f3ad68b7cf67e4df601926b8c (patch)
tree708a1a9fd08f6871981544bc17d46a468eb5157c /target/linux/ar7/files
parentc5d8137d09497f91afbb3cb378ab0d8e061bce46 (diff)
downloadmtk-20170518-fbd19377fa60739f3ad68b7cf67e4df601926b8c.zip
mtk-20170518-fbd19377fa60739f3ad68b7cf67e4df601926b8c.tar.gz
mtk-20170518-fbd19377fa60739f3ad68b7cf67e4df601926b8c.tar.bz2
fix watchdog seek test (#2383)
SVN-Revision: 8772
Diffstat (limited to 'target/linux/ar7/files')
-rw-r--r--target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c
index 2acbd94..2ae83e1 100644
--- a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c
+++ b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c
@@ -218,7 +218,7 @@ static struct notifier_block ar7_wdt_notifier = {
static ssize_t ar7_wdt_write(struct file *file, const char *data,
size_t len, loff_t *ppos)
{
- if (ppos != &file->f_pos)
+ if (*ppos != file->f_pos)
return -ESPIPE;
/* check for a magic close character */