summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>1998-09-17 22:53:35 +0000
committermjacob <mjacob@FreeBSD.org>1998-09-17 22:53:35 +0000
commitcbc05032bcc1c14b18e5030062454aa132597847 (patch)
treed7c39cc9d29eccdc27ff2f0a8943cf4c2bc5b26a /sys/dev/isp
parent9784d6e14354811d14915da4c191ac506ce20e38 (diff)
downloadFreeBSD-src-cbc05032bcc1c14b18e5030062454aa132597847.zip
FreeBSD-src-cbc05032bcc1c14b18e5030062454aa132597847.tar.gz
Cleanliness. Don't leave defined a const char array that's only used
if target mode is defined (which it isn't, yet).
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index 559b1d3..bedd3c2 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -63,6 +63,7 @@
/*
* Local static data
*/
+#if defined(ISP2100_TARGET_MODE) || defined(ISP_TARGET_MODE)
static const char tgtiqd[36] = {
0x03, 0x00, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00,
0x51, 0x4C, 0x4F, 0x47, 0x49, 0x43, 0x20, 0x20,
@@ -81,6 +82,7 @@ static const char tgtiqd[36] = {
0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x20, 0x20,
0x20, 0x20, 0x20, 0x31
};
+#endif
/*
@@ -827,16 +829,16 @@ isp_fibre_init(isp)
PRINTF("%s: Loop ID 0x%x, ALPA 0x%x\n", isp->isp_name,
fcp->isp_loopid, fcp->isp_alpa);
isp->isp_state = ISP_INITSTATE;
+#if defined(ISP2100_TARGET_MODE) || defined(ISP_TARGET_MODE)
DISABLE_INTS(isp);
if (isp->isp_fwrev >= ISP_FW_REV(1, 13)) {
-#if defined(ISP2100_TARGET_MODE) || defined(ISP_TARGET_MODE)
if (isp_modify_lun(isp, 0, 1, 1)) {
PRINTF("%s: failed to establish target mode\n",
isp->isp_name);
}
-#endif
}
ENABLE_INTS(isp);
+#endif
} else {
PRINTF("%s: failed to go to FW READY state- will not attach\n",
isp->isp_name);
OpenPOWER on IntegriCloud