mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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>
This commit is contained in:
parent
db9b2e0af6
commit
7a512eb865
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue