summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r--sys/kern/subr_hibernate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index c30eb2422bd..fe26bbab54e 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.22 2011/11/14 00:25:17 mlarkin Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.23 2011/11/15 17:13:53 deraadt Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -668,11 +668,11 @@ get_hibernate_info(union hibernate_info *hiber_info, int suspend)
/*
- * operation -1 (HIB_INIT) requests initialization of the hibernate
- * IO function
+ * Initialize of the hibernate IO function (for drivers which
+ * need that)
*/
if (hiber_info->io_func(hiber_info->device, 0,
- (vaddr_t)NULL, 0, HIB_INIT, hiber_info->io_page) == -1)
+ (vaddr_t)NULL, 0, HIB_INIT, hiber_info->io_page))
goto fail;
if (get_hibernate_info_md(hiber_info))