瀏覽代碼

aya: remove redundant TEST_SYSCALL use

This is already done in `syscall`.
Tamir Duberstein 1 月之前
父節點
當前提交
eee7975ce4
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      aya/src/sys/perf_event.rs

+ 1 - 6
aya/src/sys/perf_event.rs

@@ -105,12 +105,7 @@ pub(crate) fn perf_event_open_trace_point(
 }
 
 pub(crate) fn perf_event_ioctl(fd: BorrowedFd<'_>, request: u32, arg: c_int) -> SysResult {
-    let call = Syscall::PerfEventIoctl { fd, request, arg };
-    #[cfg(not(test))]
-    return syscall(call);
-
-    #[cfg(test)]
-    return crate::sys::TEST_SYSCALL.with(|test_impl| unsafe { test_impl.borrow()(call) });
+    syscall(Syscall::PerfEventIoctl { fd, request, arg })
 }
 
 fn perf_event_sys(