NetBpfLoad: remove spurious S+ check.
Since all mainline bpf code is now loaded by NetBpfLoad, compatibility with platform bpfloader simply doesn't matter any more. Test: TreeHugger Flag: EXEMPT mainline Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Id96e3e6a4dac485f3e707cc9e6c4b05a4f9389d7
This commit is contained in:
parent
8c31a84f9f
commit
66893bffe5
1 changed files with 1 additions and 4 deletions
|
|
@ -1399,10 +1399,7 @@ int loadProg(const char* const elfPath, const unsigned int bpfloader_ver,
|
|||
ALOGV("map_fd found at %d is %d in %s", i, mapFds[i].get(), elfPath);
|
||||
|
||||
ret = readCodeSections(elfFile, cs);
|
||||
// BPF .o's with no programs are only supported by mainline netbpfload,
|
||||
// make sure .o's targeting non-mainline (ie. S) bpfloader don't show up.
|
||||
if (ret == -ENOENT && bpfLoaderMinVer >= BPFLOADER_MAINLINE_S_VERSION)
|
||||
return 0;
|
||||
if (ret == -ENOENT) return 0;
|
||||
if (ret) {
|
||||
ALOGE("Couldn't read all code sections in %s", elfPath);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue