From dfef229781fbbeda37c01dab7882e7009470cf82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Tue, 4 Jun 2024 13:48:36 +0000 Subject: [PATCH] BpfSyscallWrappers: remove mapRetrieve() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (spurious) Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: I642104fb08ffb73f7f409ac868b029962dc31979 --- .../bpf_syscall_wrappers/include/BpfSyscallWrappers.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h b/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h index cb02de8379..2a0e8e0ead 100644 --- a/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h +++ b/staticlibs/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h @@ -128,20 +128,16 @@ inline int bpfFdGet(const char* pathname, uint32_t flag) { }); } -inline int mapRetrieve(const char* pathname, uint32_t flag) { - return bpfFdGet(pathname, flag); -} - inline int mapRetrieveRW(const char* pathname) { - return mapRetrieve(pathname, 0); + return bpfFdGet(pathname, 0); } inline int mapRetrieveRO(const char* pathname) { - return mapRetrieve(pathname, BPF_F_RDONLY); + return bpfFdGet(pathname, BPF_F_RDONLY); } inline int mapRetrieveWO(const char* pathname) { - return mapRetrieve(pathname, BPF_F_WRONLY); + return bpfFdGet(pathname, BPF_F_WRONLY); } inline int retrieveProgram(const char* pathname) {