From: Julia Lawall Date: Wed, 2 Aug 2017 09:35:00 +0000 (+0200) Subject: X25: constify null_x25_address X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9e6c2329a518d43a4734b26349bb19d8dfd7e6b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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); 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 {