From: Benjamin Romer Date: Tue, 4 Nov 2014 16:25:13 +0000 (-0500) Subject: staging: unisys: split double assignment in visor_charqueue_create() X-Git-Tag: v4.14-rc1~6283^2~443 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7146250754d9cde8480bc39e316c07ef2d63758e;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Greg Kroah-Hartman --- 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; }