Date: Sun, 2 Sep 2012 18:13:22 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r240039 - stable/9/sys/dev/ata/chipsets Message-ID: <201209021813.q82IDM7j047160@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Sun Sep 2 18:13:22 2012 New Revision: 240039 URL: http://svn.freebsd.org/changeset/base/240039 Log: MFC r238203: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) Modified: stable/9/sys/dev/ata/chipsets/ata-via.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/ata/chipsets/ata-via.c ============================================================================== --- stable/9/sys/dev/ata/chipsets/ata-via.c Sun Sep 2 18:13:18 2012 (r240038) +++ stable/9/sys/dev/ata/chipsets/ata-via.c Sun Sep 2 18:13:22 2012 (r240039) @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209021813.q82IDM7j047160>