register: Remove useless branch in register probe
IORING_REGISTER_PROBE doesn't return a positive value. This branch is
useless. Remove it.
[1]: io_probe
Kernel-code-ref: [1]
Link:
@@ -219,11 +219,8 @@ int io_uring_register_eventfd_async(struct io_uring *ring, int event_fd)
int io_uring_register_probe(struct io_uring *ring, struct io_uring_probe *p,
unsigned int nr_ops)
{
- int ret;
-
- ret = __sys_io_uring_register(ring->ring_fd, IORING_REGISTER_PROBE, p,
+ return __sys_io_uring_register(ring->ring_fd, IORING_REGISTER_PROBE, p,
nr_ops);
- return (ret < 0) ? ret : 0;
}
int io_uring_register_personality(struct io_uring *ring)
