summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-04-23 07:36:44 +0000
committermav <mav@FreeBSD.org>2017-04-23 07:36:44 +0000
commit1967822e61e1f40bdecb9e12a07fea636886b93c (patch)
treeca678341b7f4d1de9d5e962d90fc831db900df9c /sys/dev/isp
parent348663f0d3a568ce13a316e59c05a6d102161a3c (diff)
downloadFreeBSD-src-1967822e61e1f40bdecb9e12a07fea636886b93c.zip
FreeBSD-src-1967822e61e1f40bdecb9e12a07fea636886b93c.tar.gz
MFC r316652: Fix few minor issues found by Clang Analyzer.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp.c3
-rw-r--r--sys/dev/isp/isp_freebsd.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index 1328a4f..4435d53 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -2662,7 +2662,8 @@ isp_plogx(ispsoftc_t *isp, int chan, uint16_t handle, uint32_t portid, int flags
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);
}
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index 05b8a91..6368ed9 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -3792,7 +3792,6 @@ changed:
nlstate = reason = 0;
}
va_end(ap);
- fc = ISP_FC_PC(isp, bus);
if (evt == ISPASYNC_CHANGE_PDB) {
msg = "Port Database Changed";
OpenPOWER on IntegriCloud