diff options
author | Alexander Motin <mav@FreeBSD.org> | 2017-04-09 07:53:31 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2017-04-09 07:53:31 +0000 |
commit | e9da70a35ebef64ba7f9a08681f871888d9d3a8c (patch) | |
tree | 3034f76123b6ba5964e5d01550513483f9be1253 | |
parent | 3b2933986310be81f767caae4f69c666e8bf098a (diff) | |
download | src-e9da70a35ebef64ba7f9a08681f871888d9d3a8c.tar.gz src-e9da70a35ebef64ba7f9a08681f871888d9d3a8c.zip |
Fix few minor issues found by Clang Analyzer.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=316652
-rw-r--r-- | sys/dev/isp/isp.c | 3 | ||||
-rw-r--r-- | sys/dev/isp/isp_freebsd.c | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index 3409e395d7e6..d71a6357ba2d 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 3c723520bf72..5ce037a154c7 100644 --- a/sys/dev/isp/isp_freebsd.c +++ b/sys/dev/isp/isp_freebsd.c @@ -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"; |