提交 71462507 编写于 作者: B Benjamin Romer 提交者: Greg Kroah-Hartman

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: NBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7a81a6e8
...@@ -45,7 +45,8 @@ struct charqueue *visor_charqueue_create(ulong nslots) ...@@ -45,7 +45,8 @@ struct charqueue *visor_charqueue_create(ulong nslots)
} }
cq->alloc_size = alloc_size; cq->alloc_size = alloc_size;
cq->nslots = nslots; cq->nslots = nslots;
cq->head = cq->tail = 0; cq->head = 0;
cq->tail = 0;
spin_lock_init(&cq->lock); spin_lock_init(&cq->lock);
return cq; return cq;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册