Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2017 21:11:55 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315869 - head/sys/dev/isp
Message-ID:  <201703232111.v2NLBtZ8013196@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703232111.v2NLBtZ8013196>