Remove some useless code.
MFC after: 2 weeks
This commit is contained in:
parent
3966c3803f
commit
9abc1e2b0c
@ -4530,7 +4530,6 @@ isp_start(XS_T *xs)
|
|||||||
return (dmaresult);
|
return (dmaresult);
|
||||||
}
|
}
|
||||||
isp_xs_prt(isp, xs, ISP_LOGDEBUG0, "START cmd cdb[0]=0x%x datalen %ld", XS_CDBP(xs)[0], (long) XS_XFRLEN(xs));
|
isp_xs_prt(isp, xs, ISP_LOGDEBUG0, "START cmd cdb[0]=0x%x datalen %ld", XS_CDBP(xs)[0], (long) XS_XFRLEN(xs));
|
||||||
isp->isp_nactive++;
|
|
||||||
return (CMD_QUEUED);
|
return (CMD_QUEUED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5359,9 +5358,6 @@ isp_intr_respq(ispsoftc_t *isp)
|
|||||||
}
|
}
|
||||||
isp_destroy_handle(isp, sp->req_handle);
|
isp_destroy_handle(isp, sp->req_handle);
|
||||||
|
|
||||||
if (isp->isp_nactive > 0) {
|
|
||||||
isp->isp_nactive--;
|
|
||||||
}
|
|
||||||
complist[ndone++] = xs; /* defer completion call until later */
|
complist[ndone++] = xs; /* defer completion call until later */
|
||||||
ISP_MEMZERO(hp, QENTRY_LEN); /* PERF */
|
ISP_MEMZERO(hp, QENTRY_LEN); /* PERF */
|
||||||
last_etype = etype;
|
last_etype = etype;
|
||||||
@ -5932,9 +5928,6 @@ isp_handle_other_response(ispsoftc_t *isp, int type, isphdr_t *hp, uint32_t *opt
|
|||||||
void *ptr;
|
void *ptr;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case RQSTYPE_STATUS_CONT:
|
|
||||||
isp_prt(isp, ISP_LOG_WARN1, "Ignored Continuation Response");
|
|
||||||
return (1);
|
|
||||||
case RQSTYPE_MARKER:
|
case RQSTYPE_MARKER:
|
||||||
isp_prt(isp, ISP_LOG_WARN1, "Marker Response");
|
isp_prt(isp, ISP_LOG_WARN1, "Marker Response");
|
||||||
return (1);
|
return (1);
|
||||||
@ -6536,9 +6529,6 @@ isp_fastpost_complete(ispsoftc_t *isp, uint32_t fph)
|
|||||||
if (XS_XFRLEN(xs)) {
|
if (XS_XFRLEN(xs)) {
|
||||||
ISP_DMAFREE(isp, xs, fph);
|
ISP_DMAFREE(isp, xs, fph);
|
||||||
}
|
}
|
||||||
if (isp->isp_nactive) {
|
|
||||||
isp->isp_nactive--;
|
|
||||||
}
|
|
||||||
isp_done(xs);
|
isp_done(xs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7579,7 +7569,6 @@ isp_reinit(ispsoftc_t *isp, int do_load_defaults)
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
isp->isp_nactive = 0;
|
|
||||||
isp_clear_commands(isp);
|
isp_clear_commands(isp);
|
||||||
if (IS_FC(isp)) {
|
if (IS_FC(isp)) {
|
||||||
for (i = 0; i < isp->isp_nchan; i++)
|
for (i = 0; i < isp->isp_nchan; i++)
|
||||||
|
@ -1591,7 +1591,6 @@ isp_target_start_ctio(ispsoftc_t *isp, union ccb *ccb, enum Start_Ctio_How how)
|
|||||||
xpt_done(ccb);
|
xpt_done(ccb);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
isp->isp_nactive++;
|
|
||||||
ccb->ccb_h.status = CAM_REQ_INPROG | CAM_SIM_QUEUED;
|
ccb->ccb_h.status = CAM_REQ_INPROG | CAM_SIM_QUEUED;
|
||||||
if (xfrlen) {
|
if (xfrlen) {
|
||||||
ccb->ccb_h.spriv_field0 = atp->bytes_xfered;
|
ccb->ccb_h.spriv_field0 = atp->bytes_xfered;
|
||||||
@ -2113,9 +2112,6 @@ isp_handle_platform_ctio(ispsoftc_t *isp, void *arg)
|
|||||||
isp_destroy_handle(isp, handle);
|
isp_destroy_handle(isp, handle);
|
||||||
resid = data_requested = PISP_PCMD(ccb)->datalen;
|
resid = data_requested = PISP_PCMD(ccb)->datalen;
|
||||||
isp_free_pcmd(isp, ccb);
|
isp_free_pcmd(isp, ccb);
|
||||||
if (isp->isp_nactive) {
|
|
||||||
isp->isp_nactive--;
|
|
||||||
}
|
|
||||||
|
|
||||||
bus = XS_CHANNEL(ccb);
|
bus = XS_CHANNEL(ccb);
|
||||||
if (IS_24XX(isp)) {
|
if (IS_24XX(isp)) {
|
||||||
|
@ -553,7 +553,6 @@ struct ispsoftc {
|
|||||||
|
|
||||||
volatile u_int isp_mboxbsy; /* mailbox command active */
|
volatile u_int isp_mboxbsy; /* mailbox command active */
|
||||||
volatile u_int isp_state;
|
volatile u_int isp_state;
|
||||||
volatile u_int isp_nactive; /* how many commands active */
|
|
||||||
volatile mbreg_t isp_curmbx; /* currently active mailbox command */
|
volatile mbreg_t isp_curmbx; /* currently active mailbox command */
|
||||||
volatile uint32_t isp_reqodx; /* index of last ISP pickup */
|
volatile uint32_t isp_reqodx; /* index of last ISP pickup */
|
||||||
volatile uint32_t isp_reqidx; /* index of next request */
|
volatile uint32_t isp_reqidx; /* index of next request */
|
||||||
|
Loading…
Reference in New Issue
Block a user