diff options
Diffstat (limited to 'io_uring/rsrc.c')
-rw-r--r-- | io_uring/rsrc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index 806f2c1f5d2e..3fb1bd616eef 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -500,12 +500,10 @@ void io_free_rsrc_node(struct io_ring_ctx *ctx, struct io_rsrc_node *node) switch (node->type) { case IORING_RSRC_FILE: - if (io_slot_file(node)) - fput(io_slot_file(node)); + fput(io_slot_file(node)); break; case IORING_RSRC_BUFFER: - if (node->buf) - io_buffer_unmap(ctx, node->buf); + io_buffer_unmap(ctx, node->buf); break; default: WARN_ON_ONCE(1); |