Re: [PATCH] io_uring: remove redundant assignment to ret in io_register_iowq_max_workers()

From: Jens Axboe
Date: Tue Nov 02 2021 - 16:29:38 EST


On Wed, 3 Nov 2021 02:05:21 +0700, Nghia Le wrote:
> 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.
>
>

Applied, thanks!

[1/1] io_uring: remove redundant assignment to ret in io_register_iowq_max_workers()
commit: 83956c86fffe0465408c7d62e925d88748075e00

Best regards,
--
Jens Axboe