Re: [PATCH] btrfs: return a literal instead of a variable

From: David Sterba
Date: Thu Mar 06 2025 - 03:29:53 EST


On Wed, Mar 05, 2025 at 06:01:57PM +0300, Dan Carpenter wrote:
> This is just a small clean up, it doesn't change how the code works.
> Originally this code had a goto so we needed to set "ret = 0;" but now
> it returns directly and so we can simplify it a bit by doing a
> "return 0;" and removing the assignment.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Added to for-next, thanks.