summaryrefslogtreecommitdiffstats
path: root/sys/dev/vr
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/vr
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/vr')
-rw-r--r--sys/dev/vr/if_vr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index 787dda5..7054042 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.c
@@ -119,7 +119,7 @@ static const struct vr_type {
u_int16_t vr_did;
int vr_quirks;
const char *vr_name;
-} const vr_devs[] = {
+} vr_devs[] = {
{ VIA_VENDORID, VIA_DEVICEID_RHINE,
VR_Q_NEEDALIGN,
"VIA VT3043 Rhine I 10/100BaseTX" },
@@ -200,7 +200,7 @@ static const struct vr_tx_threshold_table {
int tx_cfg;
int bcr_cfg;
int value;
-} const vr_tx_threshold_tables[] = {
+} vr_tx_threshold_tables[] = {
{ VR_TXTHRESH_64BYTES, VR_BCR1_TXTHRESH64BYTES, 64 },
{ VR_TXTHRESH_128BYTES, VR_BCR1_TXTHRESH128BYTES, 128 },
{ VR_TXTHRESH_256BYTES, VR_BCR1_TXTHRESH256BYTES, 256 },
OpenPOWER on IntegriCloud