svn commit: r269713 - head/sys/dev/ata/chipsets

Warner Losh imp at FreeBSD.org
Fri Aug 8 11:47:19 UTC 2014


Author: imp
Date: Fri Aug  8 11:47:18 2014
New Revision: 269713
URL: http://svnweb.freebsd.org/changeset/base/269713

Log:
  err set but not used. Eliminate it.

Modified:
  head/sys/dev/ata/chipsets/ata-promise.c

Modified: head/sys/dev/ata/chipsets/ata-promise.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-promise.c	Fri Aug  8 11:47:14 2014	(r269712)
+++ head/sys/dev/ata/chipsets/ata-promise.c	Fri Aug  8 11:47:18 2014	(r269713)
@@ -957,9 +957,9 @@ ata_promise_mio_softreset(device_t dev, 
 
     /* wait for BUSY to go inactive */
     for (timeout = 0; timeout < 100; timeout++) {
-	u_int8_t err, stat;
+	u_int8_t /* err, */ stat;
 
-	err = ATA_IDX_INB(ch, ATA_ERROR);
+	/* err = */ ATA_IDX_INB(ch, ATA_ERROR);
 	stat = ATA_IDX_INB(ch, ATA_STATUS);
 
 	//if (stat == err && timeout > (stat & ATA_S_BUSY ? 100 : 10))


More information about the svn-src-all mailing list