aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-11-05 19:16:27 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-11-05 19:16:27 +0000
commit29658c96ce9914fdf4ff4e3519fbec696ef32118 (patch)
tree94ae3a33b6da3a7eb7e7354e30b147e8e406b496 /sys/dev/pci
parent5b6478b07785cbc4771d7f164985bbd0a547091d (diff)
downloadsrc-29658c96ce9914fdf4ff4e3519fbec696ef32118.tar.gz
src-29658c96ce9914fdf4ff4e3519fbec696ef32118.zip
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
Notes
Notes: svn path=/head/; revision=242625
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 55c4aca9394d..649a494bf4d1 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -201,7 +201,7 @@ struct pci_quirk {
int arg2;
};
-static const struct pci_quirk const pci_quirks[] = {
+static const struct pci_quirk pci_quirks[] = {
/* The Intel 82371AB and 82443MX has a map register at offset 0x90. */
{ 0x71138086, PCI_QUIRK_MAP_REG, 0x90, 0 },
{ 0x719b8086, PCI_QUIRK_MAP_REG, 0x90, 0 },