taskqueue_cancel: garbage collect a write-only variable
MFC after: 3 days
This commit is contained in:
parent
92a63ca12f
commit
b757e82b43
@ -390,11 +390,9 @@ taskqueue_cancel_locked(struct taskqueue *queue, struct task *task,
|
||||
int
|
||||
taskqueue_cancel(struct taskqueue *queue, struct task *task, u_int *pendp)
|
||||
{
|
||||
u_int pending;
|
||||
int error;
|
||||
|
||||
TQ_LOCK(queue);
|
||||
pending = task->ta_pending;
|
||||
error = taskqueue_cancel_locked(queue, task, pendp);
|
||||
TQ_UNLOCK(queue);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user