Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

um: Remove the unneeded result variable

Return the value epoll_ctl() directly instead of storing it in another
redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

ye xingchen and committed by
Richard Weinberger
a0a9ad95 2241ab53

+1 -3
+1 -3
arch/um/os-Linux/irq.c
··· 127 127 int os_del_epoll_fd(int fd) 128 128 { 129 129 struct epoll_event event; 130 - int result; 131 130 /* This is quiet as we use this as IO ON/OFF - so it is often 132 131 * invoked on a non-existent fd 133 132 */ 134 - result = epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event); 135 - return result; 133 + return epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event); 136 134 } 137 135 138 136 void os_set_ioignore(void)