Re: [PATCH] io_uring: rsrc: Optimize return value variable 'ret'

From: Jens Axboe
Date: Tue Mar 14 2023 - 21:56:47 EST


On 3/16/23 12:13 PM, Li zeming wrote:
> The function returns here and returns ret directly. It may look better.

I think it'd be better to just initialize 'ret' to 0 instead.

--
Jens Axboe