Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2017 07:53:31 +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: r316652 - head/sys/dev/isp
Message-ID:  <201704090753.v397rVI3017350@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Apr  9 07:53:31 2017
New Revision: 316652
URL: https://svnweb.freebsd.org/changeset/base/316652

Log:
  Fix few minor issues found by Clang Analyzer.
  
  MFC after:	2 weeks

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

Modified: head/sys/dev/isp/isp.c
==============================================================================
--- head/sys/dev/isp/isp.c	Sun Apr  9 06:44:31 2017	(r316651)
+++ head/sys/dev/isp/isp.c	Sun Apr  9 07:53:31 2017	(r316652)
@@ -2662,7 +2662,8 @@ isp_plogx(ispsoftc_t *isp, int chan, uin
 		break;
 	}
 	if (msg) {
-		isp_prt(isp, ISP_LOGERR, "Chan %d PLOGX PortID 0x%06x to N-Port handle 0x%x: %s", chan, portid, handle, msg);
+		isp_prt(isp, lev, "Chan %d PLOGX PortID 0x%06x to N-Port handle 0x%x: %s",
+		    chan, portid, handle, msg);
 	}
 	return (rval);
 }

Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c	Sun Apr  9 06:44:31 2017	(r316651)
+++ head/sys/dev/isp/isp_freebsd.c	Sun Apr  9 07:53:31 2017	(r316652)
@@ -3779,7 +3779,6 @@ changed:
 			nlstate = reason = 0;
 		}
 		va_end(ap);
-		fc = ISP_FC_PC(isp, bus);
 
 		if (evt == ISPASYNC_CHANGE_PDB) {
 			msg = "Port Database Changed";



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