summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/flexfilelayoutxdr.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-02-14 16:19:30 +0100
committerChuck Lever <chuck.lever@oracle.com>2023-02-20 15:20:59 +0100
commit4b471a8b847b82a3035709dcf87661915c340c8a (patch)
tree8323e343138be546ee4e0154f13d928a5b618e5f /fs/nfsd/flexfilelayoutxdr.c
parentNFSD: copy the whole verifier in nfsd_copy_write_verifier (diff)
downloadlinux-4b471a8b847b82a3035709dcf87661915c340c8a.tar.xz
linux-4b471a8b847b82a3035709dcf87661915c340c8a.zip
NFSD: Clean up nfsd_symlink()
The pointer dentry is assigned a value that is never read, the assignment is redundant and can be removed. Cleans up clang-scan warning: fs/nfsd/nfsctl.c:1231:2: warning: Value stored to 'dentry' is never read [deadcode.DeadStores] dentry = ERR_PTR(ret); No need to initialize "int ret = -ENOMEM;" either. These are vestiges of nfsd_mkdir(), from whence I copied nfsd_symlink(). Reported-by: Colin Ian King <colin.i.king@gmail.com> Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/flexfilelayoutxdr.c')
0 files changed, 0 insertions, 0 deletions