svn commit: r238203 - head/sys/dev/ata/chipsets
Eitan Adler
eadler at FreeBSD.org
Sat Jul 7 17:20:53 UTC 2012
Author: eadler
Date: Sat Jul 7 17:20:52 2012
New Revision: 238203
URL: http://svn.freebsd.org/changeset/base/238203
Log:
Remove variables which are initialized but never used thereafter
reported by gcc46 warning
Approved by: cperciva
MFC after: 1 week
Modified:
head/sys/dev/ata/chipsets/ata-via.c
Modified: head/sys/dev/ata/chipsets/ata-via.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-via.c Sat Jul 7 17:20:27 2012 (r238202)
+++ head/sys/dev/ata/chipsets/ata-via.c Sat Jul 7 17:20:52 2012 (r238203)
@@ -472,12 +472,10 @@ ata_via_sata_reset(device_t dev)
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 @@ ata_via_sata_scr_read(device_t dev, int
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 svn-src-head
mailing list