we don't assign hd before dereferencing. stop dereferencing
and just use the queue cursor.
Change-Id: I023fd959c5d49575dbdf89fd4dab77341c5c52d0
Reviewed-on: http://gerrit.openafs.org/5814
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
* could VWaitExclusiveState_r instead, but not waiting is faster and
* easier to do */
for (queue_Scan(&volume_hdr_LRU, qh, nqh, volHeader)) {
- if (!hd->back || !VIsExclusiveState(V_attachState(hd->back))) {
+ if (!qh->back || !VIsExclusiveState(V_attachState(qh->back))) {
queue_Remove(qh);
hd = qh;
break;