scan-build identified these var assignements as being unused or redundant.
Change-Id: I3b51e3e1503c0724a2cf1bab37e1c02f4ae533b2
Reviewed-on: https://gerrit.openafs.org/13086
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
afs_osi_SleepSig(void *event)
{
struct afs_event *evp;
- int seq, retval;
+ int seq;
int code;
evp = afs_getevent(event);
}
seq = evp->seq;
- retval = 0;
AFS_GUNLOCK();
code = wait_event_freezable(evp->cond, seq != evp->seq);
#ifdef RX_TRACK_PACKETS
struct opr_queue *cursor;
#endif
- int nextio;
+ int nextio = 0;
int requestCount;
struct opr_queue tmpq;
#ifdef RXDEBUG_PACKET
#endif
requestCount = nbytes;
- nextio = 0;
MUTEX_ENTER(&call->lock);
if (call->error) {
* to send. Set RX_PROTOCOL_ERROR if any problems are found in
* the iovec. We put the loop condition at the end to ensure that
* a zero length write will push a short packet. */
- nextio = 0;
opr_queue_Init(&tmpq);
#ifdef RXDEBUG_PACKET
tmpqc = 0;
code);
exit(1);
}
- for (code = index = 0; index < count; index++) {
+ for (index = 0; index < count; index++) {
tp = tokenInfoP + index;
if (!(tp->deleted)) {
code = ktc_SetToken(&tp->service, &tp->token, &tp->client, 0);
}
host->z.hostFlags |= VENUSDOWN; /* Failed */
ClearHostCallbacks_r(host, 1 /* locked */ );
- nfids = 0;
break;
}
if (nfids < AFSCBMAX)
afs_int32 code = 0;
volEntries volumeInfo;
- code = 0;
*size = 0;
*resultPtr = (volintInfo *) 0;
volumeInfo.volEntries_val = (volintInfo *) 0; /*this hints the stub to allocate space */