diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 19:49:49 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 19:49:49 +0000 |
| commit | a0fb4cf18d1ae2d3f1e827eeeacb2a93a1c83c54 (patch) | |
| tree | f4ef0e39c602932d77abf5fa9fc98c79d4acc2a0 | |
| parent | 19ca58475eb343e20ab107af03654843e3299606 (diff) | |
Notes
| -rw-r--r-- | sys/dev/isp/isp.c | 9 | ||||
| -rw-r--r-- | sys/dev/isp/isp_target.c | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index 9d184dc172fd..2cc004b0bba6 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -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); diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c index c737cf1c4796..9d238055b427 100644 --- a/sys/dev/isp/isp_target.c +++ b/sys/dev/isp/isp_target.c @@ -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"; |
