Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Oct 2014 08:50:20 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272937 - head/sys/dev/isp
Message-ID:  <201410110850.s9B8oK9Z036548@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Oct 11 08:50:19 2014
New Revision: 272937
URL: https://svnweb.freebsd.org/changeset/base/272937

Log:
  Fix r272936 build with old GCC.
  
  MFC after:	1 week

Modified:
  head/sys/dev/isp/isp_library.c

Modified: head/sys/dev/isp/isp_library.c
==============================================================================
--- head/sys/dev/isp/isp_library.c	Sat Oct 11 07:59:15 2014	(r272936)
+++ head/sys/dev/isp/isp_library.c	Sat Oct 11 08:50:19 2014	(r272937)
@@ -2472,7 +2472,8 @@ isp_add_wwn_entry(ispsoftc_t *isp, int c
 
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410110850.s9B8oK9Z036548>