From f55f3b5eaba789ce3d41bc2099ad028f321481ea Mon Sep 17 00:00:00 2001 From: mav Date: Fri, 5 Dec 2014 07:48:22 +0000 Subject: MFC r272937: Fix r272936 build with old GCC. --- sys/dev/isp/isp_library.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/isp/isp_library.c b/sys/dev/isp/isp_library.c index 0dd72a5..b6d5945 100644 --- a/sys/dev/isp/isp_library.c +++ b/sys/dev/isp/isp_library.c @@ -2472,7 +2472,8 @@ isp_add_wwn_entry(ispsoftc_t *isp, int chan, uint64_t ini, uint16_t nphdl, uint3 lp = NULL; if (fcp->isp_tgt_map[nphdl]) { - lp = &fcp->portdb[fcp->isp_tgt_map[nphdl] - 1]; + i = fcp->isp_tgt_map[nphdl] - 1; + lp = &fcp->portdb[i]; } else { /* * Make sure the addition of a new target mode entry doesn't duplicate entries -- cgit v1.1