nfsd: remove set but not used variable 'len'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 28 Sep 2019 04:21:56 +0000 (12:21 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Oct 2019 20:01:33 +0000 (16:01 -0400)
commit19a1aad8886fd5b704b02870020cb6694f686991
treedfdaada3d045a4cf798fad7a5d4fa61c5616dbcf
parentda0c9ea146cbe92b832f1b0f694840ea8eb33cce
nfsd: remove set but not used variable 'len'

Fixes gcc '-Wunused-but-set-variable' warning:

fs/nfsd/nfs4xdr.c: In function nfsd4_encode_splice_read:
fs/nfsd/nfs4xdr.c:3464:7: warning: variable len set but not used [-Wunused-but-set-variable]

It is not used since commit 83a63072c815 ("nfsd: fix nfs read eof detection")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c