Skip to content

Commit 19a1aad

Browse files
YueHaibingJ. Bruce Fields
authored andcommitted
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 83a6307 ("nfsd: fix nfs read eof detection") Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent da0c9ea commit 19a1aad

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/nfsd/nfs4xdr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3461,7 +3461,6 @@ static __be32 nfsd4_encode_splice_read(
34613461
struct xdr_stream *xdr = &resp->xdr;
34623462
struct xdr_buf *buf = xdr->buf;
34633463
u32 eof;
3464-
long len;
34653464
int space_left;
34663465
__be32 nfserr;
34673466
__be32 *p = xdr->p - 2;
@@ -3470,7 +3469,6 @@ static __be32 nfsd4_encode_splice_read(
34703469
if (xdr->end - xdr->p < 1)
34713470
return nfserr_resource;
34723471

3473-
len = maxcount;
34743472
nfserr = nfsd_splice_read(read->rd_rqstp, read->rd_fhp,
34753473
file, read->rd_offset, &maxcount, &eof);
34763474
read->rd_length = maxcount;

0 commit comments

Comments
 (0)