aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-11-26 16:05:01 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-11-26 16:05:01 +0000
commit2731e062b51dad27f1fd9d439f8a5aaa0f9a84e2 (patch)
tree3d4ad06eefc7ab5b28a844ca93b2a7f3556d5c5b /sys/dev/isp
parent3e92f72cfa3ba60a42d4291f559fc93ec0038cbf (diff)
Notes
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_freebsd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index c3785f62dd56..31a1db6b3089 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -6138,10 +6138,9 @@ isp_default_wwn(ispsoftc_t * isp, int chan, int isactive, int iswwnn)
return (seed);
}
return (0x400000007F000009ull);
- } else {
- seed = iswwnn ? fc->def_wwnn : fc->def_wwpn;
}
+ seed = iswwnn ? fc->def_wwnn : fc->def_wwpn;
/*
* For channel zero just return what we have. For either ACTIVE or
@@ -6164,11 +6163,9 @@ isp_default_wwn(ispsoftc_t * isp, int chan, int isactive, int iswwnn)
if (seed) {
return (seed);
}
- if (isactive) {
+ seed = iswwnn ? ISP_FC_PC(isp, 0)->def_wwnn : ISP_FC_PC(isp, 0)->def_wwpn;
+ if (seed == 0)
seed = iswwnn ? FCPARAM(isp, 0)->isp_wwnn_nvram : FCPARAM(isp, 0)->isp_wwpn_nvram;
- } else {
- seed = iswwnn ? ISP_FC_PC(isp, 0)->def_wwnn : ISP_FC_PC(isp, 0)->def_wwpn;
- }
if (((seed >> 60) & 0xf) == 2) {
/*