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

net/irda: 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
55b1804c 030bda0d

+2 -2
+1 -1
include/net/irda/irlan_event.h
··· 67 67 IRLAN_WATCHDOG_TIMEOUT, 68 68 } IRLAN_EVENT; 69 69 70 - extern char *irlan_state[]; 70 + extern const char * const irlan_state[]; 71 71 72 72 void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event, 73 73 struct sk_buff *skb);
+1 -1
net/irda/irlan/irlan_event.c
··· 24 24 25 25 #include <net/irda/irlan_event.h> 26 26 27 - char *irlan_state[] = { 27 + const char * const irlan_state[] = { 28 28 "IRLAN_IDLE", 29 29 "IRLAN_QUERY", 30 30 "IRLAN_CONN",