mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
rxevent: fix mismatched #endif
We should only assign to 'ev' once, rather than assigning a second time to an uninitialized value. Reported by Ben Huntsman and diagnosed by Jeffrey Altman. Reviewed-on: https://gerrit.openafs.org/15106 Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> (cherry picked from commit e51ed7be3849025e9b47d1a644a4fcd99b774b30) Change-Id: I06ac2155170d8f005afd9551c69d5ef3e60afff3 Reviewed-on: https://gerrit.openafs.org/15442 Reviewed-by: Ben Huntsman <ben@huntsmans.net> Tested-by: Ben Huntsman <ben@huntsmans.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Mark Vitale <mvitale@sinenomine.net> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
This commit is contained in:
parent
e4e9122365
commit
ee6944d96d
@ -126,8 +126,8 @@ rxevent_alloc(void) {
|
||||
mrec->next = freeEvents.mallocs;
|
||||
freeEvents.mallocs = mrec;
|
||||
MUTEX_EXIT(&freeEvents.lock);
|
||||
#endif
|
||||
ev = &evlist[0];
|
||||
#endif
|
||||
} else {
|
||||
ev = opr_queue_First(&freeEvents.list, struct rxevent, q);
|
||||
opr_queue_Remove(&ev->q);
|
||||
|
Loading…
x
Reference in New Issue
Block a user