NetBpfLoad: loadProgByLibbpf() does not need to readMapNames()
Test: TreeHugger Flag: EXEMPT mainline/noop Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I08d5ed71147e756c0d1455ce3fece92d29f2eae5
This commit is contained in:
parent
e9d0e250cf
commit
d4de391686
1 changed files with 0 additions and 4 deletions
|
|
@ -1375,7 +1375,6 @@ static int pinProgs(const struct bpf_object * obj,
|
|||
|
||||
static int loadProgByLibbpf(const char* const elfPath, const unsigned int bpfloader_ver) {
|
||||
int ret;
|
||||
vector<string> mapNames;
|
||||
vector<struct bpf_map_def> md;
|
||||
vector<codeSection> cs;
|
||||
|
||||
|
|
@ -1392,9 +1391,6 @@ static int loadProgByLibbpf(const char* const elfPath, const unsigned int bpfloa
|
|||
ret = readSectionByName(".android_maps", elfFile, md);
|
||||
if (ret) return ret;
|
||||
|
||||
ret = readMapNames(elfFile, mapNames);
|
||||
if (ret) return ret;
|
||||
|
||||
ret = prepareLoadMaps(obj, md, bpfloader_ver);
|
||||
if (ret) return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue