Skip to content

Commit 6fa59c9

Browse files
JoePerchesdavem330
authored andcommitted
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>
1 parent 6f68ad7 commit 6fa59c9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

drivers/net/3c515.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,9 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
662662
pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n");
663663

664664
{
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+
};
666668
__u32 config;
667669
EL3WINDOW(3);
668670
vp->available_media = inw(ioaddr + Wn3_Options);

drivers/net/eth16i.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,9 @@ static void eth16i_initialize(struct net_device *dev, int boot)
637637

638638
/* Set interface port type */
639639
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+
};
641643

642644
switch(dev->if_port)
643645
{

0 commit comments

Comments
 (0)