pvcalls-front: don't return error when the ring is full
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 21 Dec 2018 23:06:32 +0000 (15:06 -0800)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 2 Jan 2019 16:00:31 +0000 (11:00 -0500)
commitd90a1ca60a1eccb4383fe203c76223ab4c0799ed
treea4b61eaf0953ed2005a0ccb3a00d025b2addee56
parentbeee1fbe8f7d57d6ebaa5188f9f4db89c2077196
pvcalls-front: don't return error when the ring is full

When the ring is full, size == array_size. It is not an error condition,
so simply return 0 instead of an error.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/pvcalls-front.c