diff options
author | dim <dim@FreeBSD.org> | 2012-11-05 19:16:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-11-05 19:16:27 +0000 |
commit | 373133f0add23957f517b98346a79d42d6ddbfe6 (patch) | |
tree | 94ae3a33b6da3a7eb7e7354e30b147e8e406b496 /sys/dev/sis | |
parent | 78e7d864ca1b0c2d38ffd03eeb39a9e2ce7f302f (diff) | |
download | FreeBSD-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/sis')
-rw-r--r-- | sys/dev/sis/if_sis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index c5bb8a0..2e93afa 100644 --- a/sys/dev/sis/if_sis.c +++ b/sys/dev/sis/if_sis.c @@ -126,7 +126,7 @@ MODULE_DEPEND(sis, miibus, 1, 1, 1); /* * Various supported device vendors/types and their names. */ -static const struct sis_type const sis_devs[] = { +static const struct sis_type sis_devs[] = { { SIS_VENDORID, SIS_DEVICEID_900, "SiS 900 10/100BaseTX" }, { SIS_VENDORID, SIS_DEVICEID_7016, "SiS 7016 10/100BaseTX" }, { NS_VENDORID, NS_DEVICEID_DP83815, "NatSemi DP8381[56] 10/100BaseTX" }, |