net: make sock_prot_memory_pressure() return "const char *"
Subsystems (3)
PATCH 1/1 net: make sock_prot_memory_pressure() return "const char *"
This function returns string literals which are "const char *".
Signed-off-by Alexey Dobriyan <[email protected]>
---
net/core/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/sock.c +1 -1
@@ -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" ;
From: Alexey Dobriyan <[email protected]>
Date: Fri, 4 Oct 2019 00:44:40 +0300
Quoted 3 lines
This function returns string literals which are "const char *".
Signed-off-by Alexey Dobriyan <[email protected]>
Applied.