taskqueue_cancel: garbage collect a write-only variable
MFC after: 3 days
This commit is contained in:
parent
3fd7f7bef7
commit
4c47024ce0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258354
@ -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…
Reference in New Issue
Block a user