* [PATCH] X25: constify null_x25_address
@ 2017-08-02 9:35 Julia Lawall
2017-08-03 16:14 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2017-08-02 9:35 UTC (permalink / raw)
To: Andrew Hendry
Cc: kernel-janitors, David S. Miller, linux-x25, netdev, linux-kernel
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>
---
net/x25/af_x25.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index 5a1a98d..ac09593 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -74,7 +74,7 @@
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 {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] X25: constify null_x25_address
2017-08-02 9:35 [PATCH] X25: constify null_x25_address Julia Lawall
@ 2017-08-03 16:14 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-08-03 16:14 UTC (permalink / raw)
To: Julia.Lawall
Cc: andrew.hendry, kernel-janitors, linux-x25, netdev, linux-kernel
From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Wed, 2 Aug 2017 11:35:00 +0200
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-03 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-02 9:35 [PATCH] X25: constify null_x25_address Julia Lawall
2017-08-03 16:14 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).