diff --git a/fs/io_uring.c b/fs/io_uring.c index 9a8504294ab7..852f9e908904 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -8011,10 +8011,6 @@ static int io_sq_offload_create(struct io_ring_ctx *ctx, struct io_sq_data *sqd; bool attached; - ret = -EPERM; - if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_NICE)) - goto err; - sqd = io_get_sq_data(p, &attached); if (IS_ERR(sqd)) { ret = PTR_ERR(sqd);