Skip to content

Commit e9e6c23

Browse files
JuliaLawalldavem330
authored andcommitted
X25: constify null_x25_address
null_x25_address is only used to access the string it contains, so it can be const. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5a4d148 commit e9e6c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/x25/af_x25.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ DEFINE_RWLOCK(x25_list_lock);
7474

7575
static const struct proto_ops x25_proto_ops;
7676

77-
static struct x25_address null_x25_address = {" "};
77+
static const struct x25_address null_x25_address = {" "};
7878

7979
#ifdef CONFIG_COMPAT
8080
struct compat_x25_subscrip_struct {

0 commit comments

Comments
 (0)