svn commit: r315869 - head/sys/dev/isp
Alexander Motin
mav at FreeBSD.org
Thu Mar 23 21:11:57 UTC 2017
Author: mav
Date: Thu Mar 23 21:11:55 2017
New Revision: 315869
URL: https://svnweb.freebsd.org/changeset/base/315869
Log:
Remove write-only crn field from struct isp_pcmd.
MFC after: 2 weeks
Modified:
head/sys/dev/isp/isp_freebsd.c
head/sys/dev/isp/isp_freebsd.h
Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c Thu Mar 23 20:23:00 2017 (r315868)
+++ head/sys/dev/isp/isp_freebsd.c Thu Mar 23 21:11:55 2017 (r315869)
@@ -731,7 +731,6 @@ isp_free_pcmd(ispsoftc_t *isp, union 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_
}
if (nxp->crnseed == 0)
nxp->crnseed = 1;
- PISP_PCMD(cmd)->crn = nxp->crnseed;
*crnp = nxp->crnseed++;
return (0);
}
Modified: head/sys/dev/isp/isp_freebsd.h
==============================================================================
--- head/sys/dev/isp/isp_freebsd.h Thu Mar 23 20:23:00 2017 (r315868)
+++ head/sys/dev/isp/isp_freebsd.h Thu Mar 23 21:11:55 2017 (r315869)
@@ -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))
More information about the svn-src-all
mailing list