OSDN Git Service

NFSD: Remove redundant assignment to variable host_err
authorColin Ian King <colin.i.king@gmail.com>
Mon, 10 Oct 2022 20:24:23 +0000 (21:24 +0100)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Nov 2022 17:54:44 +0000 (12:54 -0500)
commit69eed23baf877bbb1f14d7f4df54f89807c9ee2a
treeb7f8a8ba52c299b093b57cf9e35a68e75adfc4dd
parenteeadcb75794516839078c28b3730132aeb700ce6
NFSD: Remove redundant assignment to variable host_err

Variable host_err is assigned a value that is never read, it is being
re-assigned a value in every different execution path in the following
switch statement. The assignment is redundant and can be removed.

Cleans up clang-scan warning:
warning: Value stored to 'host_err' is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c