taskqueue_cancel: garbage collect a write-only variable

MFC after:	3 days
This commit is contained in:
Andriy Gapon 2013-11-19 18:45:29 +00:00
parent 3fd7f7bef7
commit 4c47024ce0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258354

View File

@ -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);