提交 7a512eb8 编写于 作者: A Alexey Dobriyan 提交者: David S. Miller

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

This function returns string literals which are "const char *".
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册