Subject: [PATCH] net: make sock_prot_memory_pressure() return "const char *"

From: Alexey Dobriyan <[email-masked]>
Date: Fri, 4 Oct 2019 00:44:40 +0300

This function returns string literals which are "const char *".

Signed-off-by: Alexey Dobriyan <[email-masked]>
---

 net/core/sock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3493,7 +3493,7 @@ static long sock_prot_memory_allocated(struct proto *proto)
 	return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L;
 }
 
-static char *sock_prot_memory_pressure(struct proto *proto)
+static const char *sock_prot_memory_pressure(struct proto *proto)
 {
 	return proto->memory_pressure != NULL ?
 	proto_memory_pressure(proto) ? "yes" : "no" : "NI";