Skip to content

Commit a0a9ad9

Browse files
ye xingchenrichardweinberger
authored andcommitted
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>
1 parent 2241ab5 commit a0a9ad9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/um/os-Linux/irq.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,10 @@ int os_mod_epoll_fd(int events, int fd, void *data)
127127
int os_del_epoll_fd(int fd)
128128
{
129129
struct epoll_event event;
130-
int result;
131130
/* This is quiet as we use this as IO ON/OFF - so it is often
132131
* invoked on a non-existent fd
133132
*/
134-
result = epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event);
135-
return result;
133+
return epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event);
136134
}
137135

138136
void os_set_ioignore(void)

0 commit comments

Comments
 (0)