aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2015-10-16 17:56:43 +0000
committerScott Long <scottl@FreeBSD.org>2015-10-16 17:56:43 +0000
commitd0be3479d57007d2d1f64a474865d7929ed9c45e (patch)
treeac4f4865d226c82714039ef271983a64f1d9413f
parenta41dab8fc91a77030b15020ad0ecce95c87a8c59 (diff)
downloadsrc-d0be3479d57007d2d1f64a474865d7929ed9c45e.tar.gz
src-d0be3479d57007d2d1f64a474865d7929ed9c45e.zip
Remove _FreeBSD_version check for something that was only an issue with
9-CURRENT. Obtained from: Netlfix, Inc MFC after: 3 days
Notes
Notes: svn path=/head/; revision=289426
-rw-r--r--sys/dev/mpr/mpr.c2
-rw-r--r--sys/dev/mpr/mprvar.h7
-rw-r--r--sys/dev/mps/mps.c2
-rw-r--r--sys/dev/mps/mps_sas.h1
-rw-r--r--sys/dev/mps/mpsvar.h7
5 files changed, 2 insertions, 17 deletions
diff --git a/sys/dev/mpr/mpr.c b/sys/dev/mpr/mpr.c
index 07e73c54e8be..ea8249b79888 100644
--- a/sys/dev/mpr/mpr.c
+++ b/sys/dev/mpr/mpr.c
@@ -1471,11 +1471,9 @@ mpr_setup_sysctl(struct mpr_softc *sc)
OID_AUTO, "enable_ssu", CTLFLAG_RW, &sc->enable_ssu, 0,
"enable SSU to SATA SSD/HDD at shutdown");
-#if __FreeBSD_version >= 900030
SYSCTL_ADD_UQUAD(sysctl_ctx, SYSCTL_CHILDREN(sysctl_tree),
OID_AUTO, "chain_alloc_fail", CTLFLAG_RD,
&sc->chain_alloc_fail, "chain allocation failures");
-#endif //FreeBSD_version >= 900030
SYSCTL_ADD_INT(sysctl_ctx, SYSCTL_CHILDREN(sysctl_tree),
OID_AUTO, "spinup_wait_time", CTLFLAG_RD,
diff --git a/sys/dev/mpr/mprvar.h b/sys/dev/mpr/mprvar.h
index acac44c5baec..306324b674a6 100644
--- a/sys/dev/mpr/mprvar.h
+++ b/sys/dev/mpr/mprvar.h
@@ -265,9 +265,7 @@ struct mpr_softc {
int chain_free_lowwater;
u_int enable_ssu;
int spinup_wait_time;
-#if __FreeBSD_version >= 900030
uint64_t chain_alloc_fail;
-#endif
struct sysctl_ctx_list sysctl_ctx;
struct sysctl_oid *sysctl_tree;
char fw_version[16];
@@ -451,11 +449,8 @@ mpr_alloc_chain(struct mpr_softc *sc)
sc->chain_free--;
if (sc->chain_free < sc->chain_free_lowwater)
sc->chain_free_lowwater = sc->chain_free;
- }
-#if __FreeBSD_version >= 900030
- else
+ } else
sc->chain_alloc_fail++;
-#endif
return (chain);
}
diff --git a/sys/dev/mps/mps.c b/sys/dev/mps/mps.c
index 7f73162830a9..4080fc678fc1 100644
--- a/sys/dev/mps/mps.c
+++ b/sys/dev/mps/mps.c
@@ -1468,11 +1468,9 @@ mps_setup_sysctl(struct mps_softc *sc)
OID_AUTO, "enable_ssu", CTLFLAG_RW, &sc->enable_ssu, 0,
"enable SSU to SATA SSD/HDD at shutdown");
-#if __FreeBSD_version >= 900030
SYSCTL_ADD_UQUAD(sysctl_ctx, SYSCTL_CHILDREN(sysctl_tree),
OID_AUTO, "chain_alloc_fail", CTLFLAG_RD,
&sc->chain_alloc_fail, "chain allocation failures");
-#endif //FreeBSD_version >= 900030
SYSCTL_ADD_INT(sysctl_ctx, SYSCTL_CHILDREN(sysctl_tree),
OID_AUTO, "spinup_wait_time", CTLFLAG_RD,
diff --git a/sys/dev/mps/mps_sas.h b/sys/dev/mps/mps_sas.h
index d03258d9a7c9..825574574edc 100644
--- a/sys/dev/mps/mps_sas.h
+++ b/sys/dev/mps/mps_sas.h
@@ -58,7 +58,6 @@ struct mpssas_target {
uint16_t tid;
SLIST_HEAD(, mpssas_lun) luns;
- TAILQ_HEAD(, mps_command) commands;
struct mps_command *tm;
TAILQ_HEAD(, mps_command) timedout_commands;
uint16_t exp_dev_handle;
diff --git a/sys/dev/mps/mpsvar.h b/sys/dev/mps/mpsvar.h
index 7a43e62aa12b..96bb4e1cfa64 100644
--- a/sys/dev/mps/mpsvar.h
+++ b/sys/dev/mps/mpsvar.h
@@ -283,9 +283,7 @@ struct mps_softc {
int chain_free_lowwater;
u_int enable_ssu;
int spinup_wait_time;
-#if __FreeBSD_version >= 900030
uint64_t chain_alloc_fail;
-#endif
struct sysctl_ctx_list sysctl_ctx;
struct sysctl_oid *sysctl_tree;
char fw_version[16];
@@ -483,11 +481,8 @@ mps_alloc_chain(struct mps_softc *sc)
sc->chain_free--;
if (sc->chain_free < sc->chain_free_lowwater)
sc->chain_free_lowwater = sc->chain_free;
- }
-#if __FreeBSD_version >= 900030
- else
+ } else
sc->chain_alloc_fail++;
-#endif
return (chain);
}