Simplify logic for readability and efficiency.
Change-Id: I3c78b23b6fcf8478fe20a803755923108995d532
Reviewed-on: http://gerrit.openafs.org/6438
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
}
else if (tsp->waitFor & OSI_SLEEPINFO_W4READ) {
sp = (void *) tsp->value;
+ if ((*sp) < OSI_RWLOCK_THREADS)
+ tsp->tidp[*sp] = tsp->tid;
(*sp)++;
- if ((*sp) <= OSI_RWLOCK_THREADS)
- tsp->tidp[(*sp)-1] = tsp->tid;
}
/* and add to our own list */