Commit bded8fa3 authored by Konstantin Belousov's avatar Konstantin Belousov
Browse files

umtxq_requeue: remove write-only variable uh2

umtxq_queue_lookup() does not change state.  It is redone inside
umtxq_insert() later, anyway.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
parent 2030ee0e
......@@ -641,7 +641,7 @@ int
umtxq_requeue(struct umtx_key *key, int n_wake, struct umtx_key *key2,
int n_requeue)
struct umtxq_queue *uh, *uh2;
struct umtxq_queue *uh;
struct umtx_q *uq, *uq_temp;
int ret;
......@@ -649,7 +649,6 @@ umtxq_requeue(struct umtx_key *key, int n_wake, struct umtx_key *key2,
uh = umtxq_queue_lookup(key, UMTX_SHARED_QUEUE);
uh2 = umtxq_queue_lookup(key2, UMTX_SHARED_QUEUE);
if (uh == NULL)
return (0);
TAILQ_FOREACH_SAFE(uq, &uh->head, uq_link, uq_temp) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment