diff options
author | Benjamin Romer <benjamin.romer@unisys.com> | 2014-11-04 16:25:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-05 19:50:49 (GMT) |
commit | 7146250754d9cde8480bc39e316c07ef2d63758e (patch) | |
tree | 0bae3ba0a8a00f28b0ebc8592da9d9443fd41621 /drivers | |
parent | 7a81a6e87e97c05524aa1d49d1f08dc7ca2260e5 (diff) | |
download | linux-7146250754d9cde8480bc39e316c07ef2d63758e.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/unisys/visorutil/charqueue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/staging/unisys/visorutil/charqueue.c index 7861e73..1ce7003 100644 --- a/drivers/staging/unisys/visorutil/charqueue.c +++ b/drivers/staging/unisys/visorutil/charqueue.c @@ -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; } |