Messages in this thread Patch in this message | | | From | Fabian Frederick <> | Subject | [PATCH 2/8] cdrom: use static const char * const where possible | Date | Fri, 31 Oct 2014 22:47:58 +0100 |
| |
Both mrw_format_status and mrw_address_space strings are only read in pr_info.
Signed-off-by: Fabian Frederick <fabf@skynet.be> --- drivers/cdrom/cdrom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index c7fa0e2..c311e0d 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c @@ -302,14 +302,14 @@ module_param(mrw_format_restart, bool, 0); static DEFINE_MUTEX(cdrom_mutex); -static const char *mrw_format_status[] = { +static const char * const mrw_format_status[] = { "not mrw", "bgformat inactive", "bgformat active", "mrw complete", }; -static const char *mrw_address_space[] = { "DMA", "GAA" }; +static const char * const mrw_address_space[] = { "DMA", "GAA" }; #if (ERRLOGMASK != CD_NOTHING) #define cd_dbg(type, fmt, ...) \ -- 1.9.3
| |