From 1b25a84cc6d055b1cdab3aba121a8c63d26a4b5b Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Thu, 27 Apr 2023 20:47:43 +0800 Subject: [PATCH] Fix waring. --- adapter/ff_hook_syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/ff_hook_syscall.c b/adapter/ff_hook_syscall.c index ef52d569d..af7d23226 100644 --- a/adapter/ff_hook_syscall.c +++ b/adapter/ff_hook_syscall.c @@ -1789,7 +1789,7 @@ RETRY: fd, fstack_kernel_fd_map[fd], kernel_maxevents); if (likely(fstack_kernel_fd_map[fd] > 0)) { static uint64_t count = 0; - if (unlikely(count & 0xff == 0)) { + if (unlikely((count & 0xff) == 0)) { kernel_ret = ff_linux_epoll_wait(fstack_kernel_fd_map[fd], events, kernel_maxevents, 0); DEBUG_LOG("ff_linux_epoll_wait kernel_ret:%d, errno:%d\n", ret, errno); if (kernel_ret < 0) {