Fix few minor issues found by Clang Analyzer.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2017-04-09 07:53:31 +00:00
parent 3b29339863
commit e9da70a35e
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -3779,7 +3779,6 @@ isp_async(ispsoftc_t *isp, ispasync_t cmd, ...)
nlstate = reason = 0;
}
va_end(ap);
fc = ISP_FC_PC(isp, bus);
if (evt == ISPASYNC_CHANGE_PDB) {
msg = "Port Database Changed";