summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/chipsets/ata-via.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-11-05 19:16:27 +0000
committerdim <dim@FreeBSD.org>2012-11-05 19:16:27 +0000
commit373133f0add23957f517b98346a79d42d6ddbfe6 (patch)
tree94ae3a33b6da3a7eb7e7354e30b147e8e406b496 /sys/dev/ata/chipsets/ata-via.c
parent78e7d864ca1b0c2d38ffd03eeb39a9e2ce7f302f (diff)
downloadFreeBSD-src-373133f0add23957f517b98346a79d42d6ddbfe6.zip
FreeBSD-src-373133f0add23957f517b98346a79d42d6ddbfe6.tar.gz
Remove duplicate const specifiers in many drivers (I hope I got all of
them, please let me know if not). Most of these are of the form: static const struct bzzt_type { [...list of members...] } const bzzt_devs[] = { [...list of initializers...] }; The second const is unnecessary, as arrays cannot be modified anyway, and if the elements are const, the whole thing is const automatically (e.g. it is placed in .rodata). I have verified this does not change the binary output of a full kernel build (except for build timestamps embedded in the object files). Reviewed by: yongari, marius MFC after: 1 week
Diffstat (limited to 'sys/dev/ata/chipsets/ata-via.c')
-rw-r--r--sys/dev/ata/chipsets/ata-via.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/chipsets/ata-via.c b/sys/dev/ata/chipsets/ata-via.c
index 01b8645..1487fcd 100644
--- a/sys/dev/ata/chipsets/ata-via.c
+++ b/sys/dev/ata/chipsets/ata-via.c
@@ -89,7 +89,7 @@ static int
ata_via_probe(device_t dev)
{
struct ata_pci_controller *ctlr = device_get_softc(dev);
- static const struct ata_chip_id const ids[] =
+ static const struct ata_chip_id ids[] =
{{ ATA_VIA82C586, 0x02, VIA33, 0x00, ATA_UDMA2, "82C586B" },
{ ATA_VIA82C586, 0x00, VIA33, 0x00, ATA_WDMA2, "82C586" },
{ ATA_VIA82C596, 0x12, VIA66, VIACLK, ATA_UDMA4, "82C596B" },
@@ -113,7 +113,7 @@ ata_via_probe(device_t dev)
{ ATA_VIAVX855, 0x00, VIA133, 0x00, ATA_UDMA6, "VX855" },
{ ATA_VIAVX900, 0x00, VIA133, VIASATA, ATA_SA300, "VX900" },
{ 0, 0, 0, 0, 0, 0 }};
- static const struct ata_chip_id const new_ids[] =
+ static const struct ata_chip_id new_ids[] =
{{ ATA_VIA6410, 0x00, 0, 0x00, ATA_UDMA6, "6410" },
{ ATA_VIA6420, 0x00, 7, 0x00, ATA_SA150, "6420" },
{ ATA_VIA6421, 0x00, 6, VIABAR, ATA_SA150, "6421" },
OpenPOWER on IntegriCloud