From f29fa1dfa4c73d0ad8ae958e4cb0160232473309 Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Tue, 27 Mar 2007 21:03:37 +0000 Subject: 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 --- sys/dev/ichwd/ichwd.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/dev/ichwd') diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c index a109f807822b..86d9ad3430d4 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; } } -- cgit v1.3