svn commit: r317358 - stable/11/sys/dev/isp

Alexander Motin mav at FreeBSD.org
Mon Apr 24 10:20:01 UTC 2017


Author: mav
Date: Mon Apr 24 10:19:59 2017
New Revision: 317358
URL: https://svnweb.freebsd.org/changeset/base/317358

Log:
  MFC r315869: Remove write-only crn field from struct isp_pcmd.

Modified:
  stable/11/sys/dev/isp/isp_freebsd.c
  stable/11/sys/dev/isp/isp_freebsd.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/isp/isp_freebsd.c
==============================================================================
--- stable/11/sys/dev/isp/isp_freebsd.c	Mon Apr 24 10:19:26 2017	(r317357)
+++ stable/11/sys/dev/isp/isp_freebsd.c	Mon Apr 24 10:19:59 2017	(r317358)
@@ -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);
@@ -4208,7 +4207,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: stable/11/sys/dev/isp/isp_freebsd.h
==============================================================================
--- stable/11/sys/dev/isp/isp_freebsd.h	Mon Apr 24 10:19:26 2017	(r317357)
+++ stable/11/sys/dev/isp/isp_freebsd.h	Mon Apr 24 10:19:59 2017	(r317358)
@@ -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-stable mailing list