diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2019-10-04 00:44:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-04 14:30:23 -0700 |
commit | 7a512eb865aa5fcfb396c71047bc9c3b046836b3 (patch) | |
tree | 8c41c729af05973eb0de482bede35a82060ceea3 | |
parent | db9b2e0af605e7c994784527abfd9276cabd718a (diff) |
net: make sock_prot_memory_pressure() return "const char *"
This function returns string literals which are "const char *".
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index e23ec80a67bf..fac2b4d80de5 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -3497,7 +3497,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"; |