summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-09-07 21:52:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-09-07 21:52:18 +0000
commit546feba4a561691f19d703b80465777065e16e3e (patch)
tree1faa7188d227772fbc0f52af538f1ec407ce7dcc /sys/arch/socppc
parent62e16fa714108af7898865c8a3d9d9b60e0a26b2 (diff)
The bright folks who designed the rb600 seem to have left out an RTC. So
don't complain if no TOD clock handle has been registered.
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r--sys/arch/socppc/socppc/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/socppc/socppc/clock.c b/sys/arch/socppc/socppc/clock.c
index 2481f519432..4b335b7e20d 100644
--- a/sys/arch/socppc/socppc/clock.c
+++ b/sys/arch/socppc/socppc/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.5 2009/06/09 01:12:38 deraadt Exp $ */
+/* $OpenBSD: clock.c,v 1.6 2009/09/07 21:52:17 kettenis Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
@@ -150,7 +150,7 @@ resettodr(void)
microtime(&tv);
- if (todr_handle == NULL || todr_settime(todr_handle, &tv) != 0)
+ if (todr_handle != NULL && todr_settime(todr_handle, &tv) != 0)
printf("Cannot set time in time-of-day clock\n");
}