[Midnightbsd-cvs] src [8306] trunk/sys/dev/mpt/mpt_pci.c: remove dead code
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Sep 17 18:27:31 EDT 2016
Revision: 8306
http://svnweb.midnightbsd.org/src/?rev=8306
Author: laffer1
Date: 2016-09-17 18:27:31 -0400 (Sat, 17 Sep 2016)
Log Message:
-----------
remove dead code
Modified Paths:
--------------
trunk/sys/dev/mpt/mpt_pci.c
Modified: trunk/sys/dev/mpt/mpt_pci.c
===================================================================
--- trunk/sys/dev/mpt/mpt_pci.c 2016-09-17 22:26:48 UTC (rev 8305)
+++ trunk/sys/dev/mpt/mpt_pci.c 2016-09-17 22:27:31 UTC (rev 8306)
@@ -261,71 +261,9 @@
return (rval);
}
-#if __FreeBSD_version < 500000
static void
mpt_set_options(struct mpt_softc *mpt)
{
- int bitmap;
-
- bitmap = 0;
- if (getenv_int("mpt_disable", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->disabled = 1;
- }
- }
- bitmap = 0;
- if (getenv_int("mpt_debug", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->verbose = MPT_PRT_DEBUG;
- }
- }
- bitmap = 0;
- if (getenv_int("mpt_debug1", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->verbose = MPT_PRT_DEBUG1;
- }
- }
- bitmap = 0;
- if (getenv_int("mpt_debug2", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->verbose = MPT_PRT_DEBUG2;
- }
- }
- bitmap = 0;
- if (getenv_int("mpt_debug3", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->verbose = MPT_PRT_DEBUG3;
- }
- }
-
- mpt->cfg_role = MPT_ROLE_DEFAULT;
- bitmap = 0;
- if (getenv_int("mpt_nil_role", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->cfg_role = 0;
- }
- mpt->do_cfg_role = 1;
- }
- bitmap = 0;
- if (getenv_int("mpt_tgt_role", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->cfg_role |= MPT_ROLE_TARGET;
- }
- mpt->do_cfg_role = 1;
- }
- bitmap = 0;
- if (getenv_int("mpt_ini_role", &bitmap)) {
- if (bitmap & (1 << mpt->unit)) {
- mpt->cfg_role |= MPT_ROLE_INITIATOR;
- }
- mpt->do_cfg_role = 1;
- }
- mpt->msi_enable = 0;
-}
-#else
-static void
-mpt_set_options(struct mpt_softc *mpt)
-{
int tval;
tval = 0;
@@ -354,7 +292,6 @@
mpt->msi_enable = tval;
}
}
-#endif
static void
mpt_link_peer(struct mpt_softc *mpt)
More information about the Midnightbsd-cvs
mailing list