Re: [PATCH v2] fuse: drop redundant err assignment in fuse_create_open()
From: Miklos Szeredi
Date: Thu Apr 16 2026 - 08:20:55 EST
On Fri, 10 Apr 2026 at 04:35, Li Wang <liwang@xxxxxxxxxx> wrote:
>
> In fuse_create_open(), err is initialized to -ENOMEM immediately before
> the fuse_alloc_forget() NULL check. If forget allocation fails,
> it branches to out_err with that value. If it succeeds, it falls through
> without modifying err, so err is still -ENOMEM at the point where
> fuse_file_alloc() is called. The second err = -ENOMEM before
> fuse_file_alloc() therefore is redundant.
>
> Signed-off-by: Li Wang <liwang@xxxxxxxxxx>
Applied, thanks.
Miklos