mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
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:
parent
6531aba22d
commit
2f26bce858
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user