From: ye xingchen Date: Tue, 20 Sep 2022 06:30:53 +0000 (+0000) Subject: um: Remove the unneeded result variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a0a9ad95ddccaefa0f743d0af427cba936b9daac;p=linux.git um: Remove the unneeded result variable Return the value epoll_ctl() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Richard Weinberger --- diff --git a/arch/um/os-Linux/irq.c b/arch/um/os-Linux/irq.c index 98ea910ef87cd..cf7e49c08b210 100644 --- a/arch/um/os-Linux/irq.c +++ b/arch/um/os-Linux/irq.c @@ -127,12 +127,10 @@ int os_mod_epoll_fd(int events, int fd, void *data) int os_del_epoll_fd(int fd) { struct epoll_event event; - int result; /* This is quiet as we use this as IO ON/OFF - so it is often * invoked on a non-existent fd */ - result = epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event); - return result; + return epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event); } void os_set_ioignore(void)