From bb829be5085b1a3ae5770c59022d8f9b4ff8cb2c Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 11 Oct 2014 08:50:19 +0000 Subject: [PATCH] Fix r272936 build with old GCC. MFC after: 1 week --- 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 0dd72a5ecdad..b6d594515547 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