X25: constify null_x25_address
authorJulia Lawall <julia.lawall@lip6.fr>
Wed, 2 Aug 2017 09:35:00 +0000 (11:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 16:13:51 +0000 (09:13 -0700)
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>
net/x25/af_x25.c

index 5a1a98df3499841172f47b71418f95d9558158d0..ac095936552d945d864facdb6b7bacd48655b47f 100644 (file)
@@ -74,7 +74,7 @@ DEFINE_RWLOCK(x25_list_lock);
 
 static const struct proto_ops x25_proto_ops;
 
-static struct x25_address null_x25_address = {"               "};
+static const struct x25_address null_x25_address = {"               "};
 
 #ifdef CONFIG_COMPAT
 struct compat_x25_subscrip_struct {