projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef59d1
)
io_uring: simplify io_pages_free
author
Pavel Begunkov
<asml.silence@gmail.com>
Wed, 13 Mar 2024 15:52:40 +0000
(15:52 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 13 Mar 2024 20:50:42 +0000
(14:50 -0600)
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>
io_uring/io_uring.c
patch
|
blob
|
history
diff --git
a/io_uring/io_uring.c
b/io_uring/io_uring.c
index e7d7a456b4896123a810384ffc873f363c77c486..48c8d74e86ab75667214f57ca97b10af90fcbcde 100644
(file)
--- a/
io_uring/io_uring.c
+++ b/
io_uring/io_uring.c
@@
-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;