]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: make function skip_callee static and return NULL rather than 0
authorColin Ian King <colin.king@canonical.com>
Mon, 18 Dec 2017 17:47:07 +0000 (17:47 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 19 Dec 2017 00:26:04 +0000 (01:26 +0100)
commit6a2fe6de58cd64c1d9ed3bdfd174c49a6fed7688
tree8c8195e18ea84f249167f4d4512fce3cf95680a7
parent0bbc9264337c59e6848a9c437d3f8bb9508bfa33
bpf: make function skip_callee static and return NULL rather than 0

Function skip_callee is local to the source and does not need to
be in global scope, so make it static. Also return NULL rather than 0.
Cleans up two sparse warnings:

symbol 'skip_callee' was not declared. Should it be static?
Using plain integer as NULL pointer

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/verifier.c