[Midnightbsd-cvs] src [7226] trunk/sys/dev/ata/chipsets: nvidia and marvell should not use const twice

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Aug 11 20:11:21 EDT 2015


Revision: 7226
          http://svnweb.midnightbsd.org/src/?rev=7226
Author:   laffer1
Date:     2015-08-11 20:11:20 -0400 (Tue, 11 Aug 2015)
Log Message:
-----------
nvidia and marvell should not use const twice

Modified Paths:
--------------
    trunk/sys/dev/ata/chipsets/ata-marvell.c
    trunk/sys/dev/ata/chipsets/ata-nvidia.c

Modified: trunk/sys/dev/ata/chipsets/ata-marvell.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-marvell.c	2015-08-12 00:07:04 UTC (rev 7225)
+++ trunk/sys/dev/ata/chipsets/ata-marvell.c	2015-08-12 00:11:20 UTC (rev 7226)
@@ -99,7 +99,7 @@
 ata_marvell_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_M88SX5040, 0, 4, MV_50XX, ATA_SA150, "88SX5040" },
      { ATA_M88SX5041, 0, 4, MV_50XX, ATA_SA150, "88SX5041" },
      { ATA_M88SX5080, 0, 8, MV_50XX, ATA_SA150, "88SX5080" },

Modified: trunk/sys/dev/ata/chipsets/ata-nvidia.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-nvidia.c	2015-08-12 00:07:04 UTC (rev 7225)
+++ trunk/sys/dev/ata/chipsets/ata-nvidia.c	2015-08-12 00:11:20 UTC (rev 7226)
@@ -75,7 +75,7 @@
 ata_nvidia_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_NFORCE1,         0, 0,       0, ATA_UDMA5, "nForce" },
      { ATA_NFORCE2,         0, 0,       0, ATA_UDMA6, "nForce2" },
      { ATA_NFORCE2_PRO,     0, 0,       0, ATA_UDMA6, "nForce2 Pro" },



More information about the Midnightbsd-cvs mailing list