OSDN Git Service

fs/nfsd: Delete invalid assignment statements in nfsd4_decode_exchange_id
authornixiaoming <nixiaoming@huawei.com>
Mon, 23 Jul 2018 01:57:11 +0000 (09:57 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 9 Aug 2018 20:11:21 +0000 (16:11 -0400)
commit5ed96bc5451bb736a0b7d5d72a0f444316dc6559
tree76b5f00d93ac697f8dd8a8f46ff1b453a80913f4
parent11b4d66ea3313d9b03a83b80458ddee64990e3c3
fs/nfsd: Delete invalid assignment statements in nfsd4_decode_exchange_id

READ_BUF(8);
dummy = be32_to_cpup(p++);
dummy = be32_to_cpup(p++);
...
READ_BUF(4);
dummy = be32_to_cpup(p++);

Assigning value to "dummy" here, but that stored value
is overwritten before it can be used.
At the same time READ_BUF() will re-update the pointer p.

delete invalid assignment statements

Signed-off-by: nixiaoming <nixiaoming@huawei.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trondmy@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c