nfsd: remove redundant assignments to variable len
authorColin Ian King <colin.i.king@gmail.com>
Wed, 21 Jun 2023 14:52:05 +0000 (15:52 +0100)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 21 Jun 2023 19:05:32 +0000 (15:05 -0400)
commit75bfb70457a4c4c9f0095e39885382fc5049c5ce
tree9822e454645aa291aa45f6701598e3d7e7d10589
parent88770b8de38eeaf093c877ed78a7e6e1660df8df
nfsd: remove redundant assignments to variable len

There are a few assignments to variable len where the value is not
being read and so the assignments are redundant and can be removed.
In one case, the variable len can be removed completely. Cleans up
4 clang scan warnings of the form:

fs/nfsd/export.c:100:7: warning: Although the value stored to 'len'
is used in the enclosing expression, the value is never actually
read from 'len' [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/export.c