staging: unisys: split double assignment in visor_charqueue_create()

Split up the doubled assignment in visor_charqueue_create() into two separate
assignments.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Benjamin Romer 2014-11-04 11:25:13 -05:00 committed by Greg Kroah-Hartman
parent 7a81a6e87e
commit 7146250754

View File

@ -45,7 +45,8 @@ struct charqueue *visor_charqueue_create(ulong nslots)
}
cq->alloc_size = alloc_size;
cq->nslots = nslots;
cq->head = cq->tail = 0;
cq->head = 0;
cq->tail = 0;
spin_lock_init(&cq->lock);
return cq;
}