aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bge/if_bge.c
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/bge/if_bge.c
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/bge/if_bge.c')
-rw-r--r--sys/dev/bge/if_bge.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 2959218c29e1..7524dca7d2de 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -139,7 +139,7 @@ MODULE_DEPEND(bge, miibus, 1, 1, 1);
static const struct bge_type {
uint16_t bge_vid;
uint16_t bge_did;
-} const bge_devs[] = {
+} bge_devs[] = {
{ ALTEON_VENDORID, ALTEON_DEVICEID_BCM5700 },
{ ALTEON_VENDORID, ALTEON_DEVICEID_BCM5701 },
@@ -239,7 +239,7 @@ static const struct bge_type {
static const struct bge_vendor {
uint16_t v_id;
const char *v_name;
-} const bge_vendors[] = {
+} bge_vendors[] = {
{ ALTEON_VENDORID, "Alteon" },
{ ALTIMA_VENDORID, "Altima" },
{ APPLE_VENDORID, "Apple" },
@@ -254,7 +254,7 @@ static const struct bge_vendor {
static const struct bge_revision {
uint32_t br_chipid;
const char *br_name;
-} const bge_revisions[] = {
+} bge_revisions[] = {
{ BGE_CHIPID_BCM5700_A0, "BCM5700 A0" },
{ BGE_CHIPID_BCM5700_A1, "BCM5700 A1" },
{ BGE_CHIPID_BCM5700_B0, "BCM5700 B0" },
@@ -328,7 +328,7 @@ static const struct bge_revision {
* Some defaults for major revisions, so that newer steppings
* that we don't know about have a shot at working.
*/
-static const struct bge_revision const bge_majorrevs[] = {
+static const struct bge_revision bge_majorrevs[] = {
{ BGE_ASICREV_BCM5700, "unknown BCM5700" },
{ BGE_ASICREV_BCM5701, "unknown BCM5701" },
{ BGE_ASICREV_BCM5703, "unknown BCM5703" },
@@ -3122,7 +3122,7 @@ bge_mbox_reorder(struct bge_softc *sc)
const uint16_t vendor;
const uint16_t device;
const char *desc;
- } const mbox_reorder_lists[] = {
+ } mbox_reorder_lists[] = {
{ 0x1022, 0x7450, "AMD-8131 PCI-X Bridge" },
};
devclass_t pci, pcib;