Module Name:    src
Committed By:   pgoyette
Date:           Sat Mar 24 08:10:49 UTC 2018

Modified Files:
        src/sys/compat/common [pgoyette-compat]: compat_80_mod.c

Log Message:
Remove unneeded opt_* includes.

Since raidframe_80_{init,fini} don't return values, don't try to use them!


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 src/sys/compat/common/compat_80_mod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/common/compat_80_mod.c
diff -u src/sys/compat/common/compat_80_mod.c:1.1.2.5 src/sys/compat/common/compat_80_mod.c:1.1.2.6
--- src/sys/compat/common/compat_80_mod.c:1.1.2.5	Sat Mar 24 05:25:59 2018
+++ src/sys/compat/common/compat_80_mod.c	Sat Mar 24 08:10:49 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_80_mod.c,v 1.1.2.5 2018/03/24 05:25:59 pgoyette Exp $	*/
+/*	$NetBSD: compat_80_mod.c,v 1.1.2.6 2018/03/24 08:10:49 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -34,44 +34,27 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_80_mod.c,v 1.1.2.5 2018/03/24 05:25:59 pgoyette Exp $");
-
-#ifdef _KERNEL_OPT
-#include "opt_compat_netbsd.h"
-#include "opt_compat_43.h"
-#endif
+__KERNEL_RCSID(0, "$NetBSD: compat_80_mod.c,v 1.1.2.6 2018/03/24 08:10:49 pgoyette Exp $");
 
 #include <sys/systm.h>
 #include <sys/module.h>
 
-#include <net/if.h>
-#include <net/route.h>
-
 #include <compat/common/compat_util.h>
 #include <compat/common/compat_mod.h>
-#include <compat/sys/sockio.h>
-
-#include <compat/net/route.h>
-#include <compat/net/route_70.h>
+#include <dev/raidframe/rf_compat80_mod.h>
 
 int compat_80_init(void)
 {
-	int error;
 
-	error = raidframe_80_init();
-	if (error != 0)
-		return error;
+	raidframe_80_init();
 
 	return 0;
 }
 
 int compat_80_fini(void)
 {
-	int error;
 
-	error = raidframe_80_fini();
-	if (error != 0)
-		return error;
+	raidframe_80_fini();
 
 	return 0;
 }

Reply via email to