summaryrefslogtreecommitdiffstats
path: root/sys/dev/ichwd/ichwd.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2007-03-27 21:03:37 +0000
committern_hibma <n_hibma@FreeBSD.org>2007-03-27 21:03:37 +0000
commit2e4f7510d94a26f1cd9ae67ea9c88535cea9c193 (patch)
treec7550e0408ca0d79f56a9e6d3c0a0ca79a6f86e2 /sys/dev/ichwd/ichwd.c
parent2f20235351089bb6e52be91ffa6c7bf6ded46a69 (diff)
downloadFreeBSD-src-2e4f7510d94a26f1cd9ae67ea9c88535cea9c193.zip
FreeBSD-src-2e4f7510d94a26f1cd9ae67ea9c88535cea9c193.tar.gz
Revisit the watchdogs: Resetting the error to EINVAL after failing to set the
watchdog might hide the succesful arming of an earlier one. Accept that on failing to arm any watchdog (because of non-supported timeouts) EOPNOTSUPP is returned instead of the more appropriate EINVAL. MFC after: 3 days
Diffstat (limited to 'sys/dev/ichwd/ichwd.c')
-rw-r--r--sys/dev/ichwd/ichwd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c
index a109f80..86d9ad3 100644
--- a/sys/dev/ichwd/ichwd.c
+++ b/sys/dev/ichwd/ichwd.c
@@ -194,8 +194,6 @@ ichwd_event(void *arg, unsigned int cmd, int *error)
} else {
if (sc->active)
ichwd_tmr_disable(sc);
- if (cmd > 0)
- *error = EINVAL;
}
}
OpenPOWER on IntegriCloud