Commit 7a512eb8 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

net: make sock_prot_memory_pressure() return "const char *"

This function returns string literals which are "const char *".
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db9b2e0a
...@@ -3497,7 +3497,7 @@ static long sock_prot_memory_allocated(struct proto *proto) ...@@ -3497,7 +3497,7 @@ static long sock_prot_memory_allocated(struct proto *proto)
return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L; 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 ? return proto->memory_pressure != NULL ?
proto_memory_pressure(proto) ? "yes" : "no" : "NI"; proto_memory_pressure(proto) ? "yes" : "no" : "NI";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment