[lvc-project] [PATCH] nfs: nfs3acl: drop useless assignment in nfs3_get_acl()

Benjamin Coddington bcodding at redhat.com
Fri Apr 11 14:02:53 MSK 2025


On 9 Apr 2025, at 16:36, Sergey Shtylyov wrote:

> In nfs3_get_acl(), the local variable status is assigned the result of
> nfs_refresh_inode() inside the *switch* statement, but that value gets
> overwritten in the next *if* statement's true branch and is completely
> ignored if that branch isn't taken...
>
> Found by Linux Verification Center (linuxtesting.org) with the Svace static
> analysis tool.
>
> Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>

Reviewed-by: Benjamin Coddington <bcodding at redhat.com>

Ben




More information about the lvc-project mailing list