register: Remove useless branch in register restrictions
IORING_REGISTER_RESTRICTIONS doesn't return a positive value. This
branch is useless. Remove it.
[1]: io_register_restrictions
Kernel-code-ref: [1]
Link:
@@ -239,12 +239,9 @@ int io_uring_register_restrictions(struct io_uring *ring,
struct io_uring_restriction *res,
unsigned int nr_res)
{
- int ret;
-
- ret = __sys_io_uring_register(ring->ring_fd,
+ return __sys_io_uring_register(ring->ring_fd,
IORING_REGISTER_RESTRICTIONS, res,
nr_res);
- return (ret < 0) ? ret : 0;
}
int io_uring_enable_rings(struct io_uring *ring)
