summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-07-07 17:20:52 +0000
committereadler <eadler@FreeBSD.org>2012-07-07 17:20:52 +0000
commit38e8d76697f389cbf3a1b98edc987e392ec34018 (patch)
tree7a63901528253cb4707a4646ab78f7b089c72658 /sys/dev/ata
parent3fb1f6ade349c32ca7eb10a1772960ce7d460ea8 (diff)
downloadFreeBSD-src-38e8d76697f389cbf3a1b98edc987e392ec34018.zip
FreeBSD-src-38e8d76697f389cbf3a1b98edc987e392ec34018.tar.gz
Remove variables which are initialized but never used thereafter
reported by gcc46 warning Approved by: cperciva MFC after: 1 week
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/chipsets/ata-via.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/ata/chipsets/ata-via.c b/sys/dev/ata/chipsets/ata-via.c
index 956a4e2..01b8645 100644
--- a/sys/dev/ata/chipsets/ata-via.c
+++ b/sys/dev/ata/chipsets/ata-via.c
@@ -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 port, int reg, u_int32_t *result)
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:
OpenPOWER on IntegriCloud