fix watchdog seek test (#2383)
[openwrt/staging/florian.git] / target / linux / ar7 / files / drivers / char / watchdog / ar7_wdt.c
index 2acbd941d5972ae89842df60084f0c7bb22ccf57..2ae83e1cd1fcea9041f664bf3bc70ca3ad93eac0 100644 (file)
@@ -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 */