mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 02:05:31 +07:00
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:
parent
7a81a6e87e
commit
7146250754
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user