Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 838d7aea authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "use BpfMap's resetMap() for creating new maps" into main

parents e69355e4 c969fb89
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -66,9 +66,7 @@ public:
        mTestableGpuMem = TestableGpuMem(mGpuMem.get());
        mTestableGpuMem.setInitialized();
        errno = 0;
        mTestMap = std::move(bpf::BpfMap<uint64_t, uint64_t>(BPF_MAP_TYPE_HASH,
                                                             TEST_MAP_SIZE,
                                                             BPF_F_NO_PREALLOC));
        mTestMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC);

        EXPECT_EQ(0, errno);
        EXPECT_TRUE(mTestMap.isValid());
+1 −3
Original line number Diff line number Diff line
@@ -65,9 +65,7 @@ public:
        mTestableGpuMem = TestableGpuMem(mGpuMem.get());

        errno = 0;
        mTestMap = std::move(bpf::BpfMap<uint64_t, uint64_t>(BPF_MAP_TYPE_HASH,
                                                             TEST_MAP_SIZE,
                                                             BPF_F_NO_PREALLOC));
        mTestMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC);

        EXPECT_EQ(0, errno);
        EXPECT_TRUE(mTestMap.isValid());