Skip to content
Commit c367eea5 authored by Sergey Shtylyov's avatar Sergey Shtylyov Committed by Trond Myklebust
Browse files

nfs: nfs3acl: drop useless assignment in nfs3_get_acl()



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: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Link: https://lore.kernel.org/r/c32dced7-a4fa-43c0-aafe-ef6c819c2f91@omp.ru


Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent d82e86c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment