From 1967822e61e1f40bdecb9e12a07fea636886b93c Mon Sep 17 00:00:00 2001 From: mav Date: Sun, 23 Apr 2017 07:36:44 +0000 Subject: MFC r316652: Fix few minor issues found by Clang Analyzer. --- sys/dev/isp/isp.c | 3 ++- sys/dev/isp/isp_freebsd.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/isp') 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"; -- cgit v1.1