svn commit: r241858 - head/sys/dev/mpt
Eitan Adler
eadler at FreeBSD.org
Mon Oct 22 03:41:25 UTC 2012
Author: eadler
Date: Mon Oct 22 03:41:24 2012
New Revision: 241858
URL: http://svn.freebsd.org/changeset/base/241858
Log:
Remove unused code since the 5.x days
Reviewed by: des, scottl
Approved by: cperciva
MFC after: 1 week
Modified:
head/sys/dev/mpt/mpt_pci.c
Modified: head/sys/dev/mpt/mpt_pci.c
==============================================================================
--- head/sys/dev/mpt/mpt_pci.c Mon Oct 22 03:41:19 2012 (r241857)
+++ head/sys/dev/mpt/mpt_pci.c Mon Oct 22 03:41:24 2012 (r241858)
@@ -261,68 +261,6 @@ mpt_pci_probe(device_t dev)
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)
{
@@ -354,7 +292,6 @@ mpt_set_options(struct mpt_softc *mpt)
mpt->msi_enable = tval;
}
}
-#endif
static void
mpt_link_peer(struct mpt_softc *mpt)
More information about the svn-src-head
mailing list