projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fddafac
)
io_uring: Remove unnecessary null check
author
YueHaibing
<yuehaibing@huawei.com>
Tue, 7 Jan 2020 14:22:44 +0000
(22:22 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 21 Jan 2020 00:04:04 +0000
(17:04 -0700)
Null check kfree is redundant, so remove it.
This is detected by coccinelle.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index edf072b6cb8f7648c6e03a6dcd55e8eee4c27e1b..00426b686092b36e9c476e1de9efc50293c46e9d 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-1160,8
+1160,7
@@
static void __io_req_aux_free(struct io_kiocb *req)
{
struct io_ring_ctx *ctx = req->ctx;
- if (req->io)
- kfree(req->io);
+ kfree(req->io);
if (req->file) {
if (req->flags & REQ_F_FIXED_FILE)
percpu_ref_put(&ctx->file_data->refs);