summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2015-12-26 12:59:00 +0000
committerpgoyette <pgoyette@NetBSD.org>2015-12-26 12:59:00 +0000
commit9dc0ab839d550c31047dde6ae02a788ca21de58b (patch)
tree6d9b5cd1ed19acd89e1155c9c5d7d83597a01635 /sys/dev/raidframe
parent0af29978efd24bae92db19a03c941fb71281f5b9 (diff)
If the "finalizer" should fail to register for any reason, just report
the situation (as a WARNING) and continue. Don't return the error code to the caller. Failure to register should not really happen - if it does, all we really lose is auto-configuration of raid-sets.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index c20006e858b..404f2955a91 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.328 2015/12/26 12:25:26 pgoyette Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.329 2015/12/26 12:59:00 pgoyette Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.328 2015/12/26 12:25:26 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.329 2015/12/26 12:59:00 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -4106,6 +4106,7 @@ raid_modcmd_init(void)
if (error != 0) {
aprint_error("WARNING: unable to register RAIDframe "
"finalizer\n");
+ error = 0;
}
return error;