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)
commitfa2d41adb953235c4acaa98f6c980fd9eabe0062
tree8c8195e18ea84f249167f4d4512fce3cf95680a7
parente90004d56bf805db7d4401fe51a80a93c311cfe6
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