Remove some dead assignment/increment operations

scan-build identified these as unused operations that can be removed.

Change-Id: I6fe7c3c23cfcbecbe8fa539131aec779c42876c2
Reviewed-on: https://gerrit.openafs.org/13305
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Pat Riehecky 2018-09-07 11:14:00 -05:00 committed by Michael Meffie
parent 6531aba22d
commit 2f26bce858
2 changed files with 0 additions and 3 deletions

View File

@ -858,8 +858,6 @@ afs_icl_CopyOut(struct afs_icl_log *logp, afs_int32 * bufferp,
memcpy((char *)bufferp, (char *)&logp->datap[ix],
sizeof(afs_int32) * nwords);
outWords += nwords;
inWords -= nwords;
bufferp += nwords;
}
ReleaseWriteLock(&logp->lock);

View File

@ -133,7 +133,6 @@ GetTokens(afs_int32 ahost, afs_int32 auid)
memcpy(tbuffer, pheader, sizeof(pheader));
tp = tbuffer + sizeof(pheader);
memcpy(tp, &index, sizeof(afs_int32));
tp += sizeof(afs_int32);
iob.in = tbuffer;
iob.in_size = sizeof(afs_int32) + sizeof(pheader);
iob.out = tbuffer;