register: Remove useless branch in unregister files
IORING_UNREGISTER_FILES doesn't return a positive value. This branch
is useless. Remove it.
[1]: io_sqe_files_unregister
Kernel-code-ref: [1]
Link:
@@ -193,11 +193,8 @@ int io_uring_register_files(struct io_uring *ring, const int *files,
int io_uring_unregister_files(struct io_uring *ring)
{
- int ret;
-
- ret = __sys_io_uring_register(ring->ring_fd, IORING_UNREGISTER_FILES,
+ return __sys_io_uring_register(ring->ring_fd, IORING_UNREGISTER_FILES,
NULL, 0);
- return (ret < 0) ? ret : 0;
}
int io_uring_register_eventfd(struct io_uring *ring, int event_fd)
