Skip to content

Commit 7a512eb

Browse files
Alexey Dobriyandavem330
authored andcommitted
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]> Signed-off-by: David S. Miller <[email protected]>
1 parent db9b2e0 commit 7a512eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3497,7 +3497,7 @@ static long sock_prot_memory_allocated(struct proto *proto)
34973497
return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L;
34983498
}
34993499

3500-
static char *sock_prot_memory_pressure(struct proto *proto)
3500+
static const char *sock_prot_memory_pressure(struct proto *proto)
35013501
{
35023502
return proto->memory_pressure != NULL ?
35033503
proto_memory_pressure(proto) ? "yes" : "no" : "NI";

0 commit comments

Comments
 (0)