Re: [PATCH][next] btrfs: send: remove redundant assignments to variable ret

From: David Sterba
Date: Tue Nov 26 2024 - 10:44:31 EST


On Wed, Nov 13, 2024 at 01:00:12PM +0000, Colin Ian King wrote:
> The variable ret is being initialized to zero and also later
> re-assigned to zero. In both cases the assignment is redundant
> since the value is never read after the assignment and hence
> they can be removed.
>
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>

Added to for-next, thanks.