[Midnightbsd-cvs] src [8000] trunk/sys/dev/ata/chipsets/ata-via.c: get rid of unused vars

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 15 04:37:23 EDT 2016


Revision: 8000
          http://svnweb.midnightbsd.org/src/?rev=8000
Author:   laffer1
Date:     2016-09-15 04:37:23 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
get rid of unused vars

Modified Paths:
--------------
    trunk/sys/dev/ata/chipsets/ata-via.c

Modified: trunk/sys/dev/ata/chipsets/ata-via.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-via.c	2016-09-15 08:37:00 UTC (rev 7999)
+++ trunk/sys/dev/ata/chipsets/ata-via.c	2016-09-15 08:37:23 UTC (rev 8000)
@@ -472,12 +472,10 @@
 static int
 ata_via_sata_scr_read(device_t dev, int port, int reg, u_int32_t *result)
 {
-	struct ata_channel *ch;
 	device_t parent;
 	uint32_t val;
 
 	parent = device_get_parent(dev);
-	ch = device_get_softc(dev);
 	port = (port == 1) ? 1 : 0;
 	switch (reg) {
 	case ATA_SSTATUS:
@@ -520,12 +518,10 @@
 static int
 ata_via_sata_scr_write(device_t dev, int port, int reg, u_int32_t value)
 {
-	struct ata_channel *ch;
 	device_t parent;
 	uint32_t val;
 
 	parent = device_get_parent(dev);
-	ch = device_get_softc(dev);
 	port = (port == 1) ? 1 : 0;
 	switch (reg) {
 	case ATA_SERROR:



More information about the Midnightbsd-cvs mailing list