summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2017-08-02 05:35:00 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-03 12:13:51 -0400
commite9e6c2329a518d43a4734b26349bb19d8dfd7e6b (patch)
tree57385d88a26b0f683056ca756923ecdd76a6e32c
parent5a4d148f0d781129137c790936e3ced767987daf (diff)
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>
-rw-r--r--net/x25/af_x25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index 5a1a98df3499..ac095936552d 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -74,7 +74,7 @@ DEFINE_RWLOCK(x25_list_lock);
74 74
75static const struct proto_ops x25_proto_ops; 75static const struct proto_ops x25_proto_ops;
76 76
77static struct x25_address null_x25_address = {" "}; 77static const struct x25_address null_x25_address = {" "};
78 78
79#ifdef CONFIG_COMPAT 79#ifdef CONFIG_COMPAT
80struct compat_x25_subscrip_struct { 80struct compat_x25_subscrip_struct {