mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
io_uring: simplify io_pages_free
We never pass a null (top-level) pointer, remove the check. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/0e1a46f9a5cd38e6876905e8030bdff9b0845e96.1710343154.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
cef59d1ea7
commit
2c5c0ba117
|
|
@ -2696,13 +2696,9 @@ void io_mem_free(void *ptr)
|
|||
|
||||
static void io_pages_free(struct page ***pages, int npages)
|
||||
{
|
||||
struct page **page_array;
|
||||
struct page **page_array = *pages;
|
||||
int i;
|
||||
|
||||
if (!pages)
|
||||
return;
|
||||
|
||||
page_array = *pages;
|
||||
if (!page_array)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user