From 029b129de8e0f2fff962d0f8011de2878821ee4e Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sat, 7 Jul 2012 17:20:52 +0000 Subject: [PATCH] Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva MFC after: 1 week --- sys/dev/ata/chipsets/ata-via.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/ata/chipsets/ata-via.c b/sys/dev/ata/chipsets/ata-via.c index 956a4e2b290..01b86459755 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: