Commit 2c5c0ba1 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe
Browse files

io_uring: simplify io_pages_free

parent cef59d1e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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;