From 29658c96ce9914fdf4ff4e3519fbec696ef32118 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 5 Nov 2012 19:16:27 +0000 Subject: 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 --- sys/dev/flash/at45d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/flash') diff --git a/sys/dev/flash/at45d.c b/sys/dev/flash/at45d.c index 7d1172fba5a2b..7506434afe0a2 100644 --- a/sys/dev/flash/at45d.c +++ b/sys/dev/flash/at45d.c @@ -106,7 +106,7 @@ static int at45d_wait_ready(device_t dev, uint8_t *status); * 2^N byte pages. If support for the latter is enabled, the sector offset * has to be reduced by one. */ -static const struct at45d_flash_ident const at45d_flash_devices[] = { +static const struct at45d_flash_ident at45d_flash_devices[] = { { "AT45DB011B", 0x1f2200, 512, 9, 264, 256 }, { "AT45DB021B", 0x1f2300, 1024, 9, 264, 256 }, { "AT45DB041x", 0x1f2400, 2028, 9, 264, 256 }, -- cgit v1.3