Remove write-only crn field from struct isp_pcmd.
MFC after: 2 weeks
This commit is contained in:
parent
061f01b16e
commit
96ae113f37
@ -731,7 +731,6 @@ isp_free_pcmd(ispsoftc_t *isp, union ccb *ccb)
|
||||
if (ISP_PCMD(ccb)) {
|
||||
#ifdef ISP_TARGET_MODE
|
||||
PISP_PCMD(ccb)->datalen = 0;
|
||||
PISP_PCMD(ccb)->crn = 0;
|
||||
#endif
|
||||
PISP_PCMD(ccb)->next = isp->isp_osinfo.pcmd_free;
|
||||
isp->isp_osinfo.pcmd_free = ISP_PCMD(ccb);
|
||||
@ -4209,7 +4208,6 @@ isp_fcp_next_crn(ispsoftc_t *isp, uint8_t *crnp, XS_T *cmd)
|
||||
}
|
||||
if (nxp->crnseed == 0)
|
||||
nxp->crnseed = 1;
|
||||
PISP_PCMD(cmd)->crn = nxp->crnseed;
|
||||
*crnp = nxp->crnseed++;
|
||||
return (0);
|
||||
}
|
||||
|
@ -176,7 +176,6 @@ struct isp_pcmd {
|
||||
struct ispsoftc * isp; /* containing isp */
|
||||
struct callout wdog; /* watchdog timer */
|
||||
uint32_t datalen; /* data length for this command (target mode only) */
|
||||
uint8_t crn; /* command reference number */
|
||||
};
|
||||
#define ISP_PCMD(ccb) (ccb)->ccb_h.spriv_ptr1
|
||||
#define PISP_PCMD(ccb) ((struct isp_pcmd *)ISP_PCMD(ccb))
|
||||
|
Loading…
x
Reference in New Issue
Block a user