Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net: Use static const char * const where possible

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
6fa59c9d 6f68ad7f

+6 -2
+3 -1
drivers/net/3c515.c
··· 662 662 pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n"); 663 663 664 664 { 665 - char *ram_split[] = { "5:3", "3:1", "1:1", "3:5" }; 665 + static const char * const ram_split[] = { 666 + "5:3", "3:1", "1:1", "3:5" 667 + }; 666 668 __u32 config; 667 669 EL3WINDOW(3); 668 670 vp->available_media = inw(ioaddr + Wn3_Options);
+3 -1
drivers/net/eth16i.c
··· 637 637 638 638 /* Set interface port type */ 639 639 if(boot) { 640 - char *porttype[] = {"BNC", "DIX", "TP", "AUTO", "FROM_EPROM" }; 640 + static const char * const porttype[] = { 641 + "BNC", "DIX", "TP", "AUTO", "FROM_EPROM" 642 + }; 641 643 642 644 switch(dev->if_port) 643 645 {