Skip to content
Commit 4b471a8b authored by Chuck Lever's avatar Chuck Lever
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Reported-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 90d21755
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment