Remove unused variables

Add /* FALLTHROUGH */

Found by:       FlexeLint
This commit is contained in:
Poul-Henning Kamp 2003-05-31 19:49:49 +00:00
parent 19ca58475e
commit a0fb4cf18d
2 changed files with 5 additions and 6 deletions

View File

@ -5239,16 +5239,13 @@ static char *fc_mbcmd_names[] = {
static void
isp_mboxcmd_qnw(struct ispsoftc *isp, mbreg_t *mbp, int nodelay)
{
unsigned int lim, ibits, obits, box, opcode;
unsigned int ibits, obits, box, opcode;
u_int16_t *mcp;
if (IS_FC(isp)) {
if (IS_FC(isp))
mcp = mbpfc;
lim = (sizeof (mbpfc) / sizeof (mbpfc[0]));
} else {
else
mcp = mbpscsi;
lim = (sizeof (mbpscsi) / sizeof (mbpscsi[0]));
}
opcode = mbp->param[0];
ibits = HIBYT(mcp[opcode]) & NMBOX_BMASK(isp);
obits = LOBYT(mcp[opcode]) & NMBOX_BMASK(isp);

View File

@ -1113,9 +1113,11 @@ isp_handle_ctio2(struct ispsoftc *isp, ct2_entry_t *ct)
case CT_PORTNOTAVAIL:
if (fmsg == NULL)
fmsg = "Port not available";
/*FALLTHROUGH*/
case CT_PORTCHANGED:
if (fmsg == NULL)
fmsg = "Port Changed";
/*FALLTHROUGH*/
case CT_NOACK:
if (fmsg == NULL)
fmsg = "unacknowledged Immediate Notify pending";