]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: remove redundant assignment to ret in io_register_iowq_max_workers()
authorNghia Le <nghialm78@gmail.com>
Tue, 2 Nov 2021 19:05:21 +0000 (02:05 +0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Nov 2021 20:29:12 +0000 (14:29 -0600)
commit61ebc2f947ccc4d3eb67f4ff4af36501e059a114
treef0c2a915ce40db036646649661fce2eacdeb5362
parent434944f13627eaecd6529f32221919b074a3d3d6
io_uring: remove redundant assignment to ret in io_register_iowq_max_workers()

After the assignment, only exit path with label 'err' uses ret as
return value. However,before exiting through this path with label 'err',
ret is assigned with the return value of io_wq_max_workers(). Hence, the
initial assignment is redundant and can be removed.

Signed-off-by: Nghia Le <nghialm78@gmail.com>
Link: https://lore.kernel.org/r/20211102190521.28291-1-nghialm78@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c