]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3cc199eaca73d9cab31cc44bed0e1747f9450c43
treea4b61eaf0953ed2005a0ccb3a00d025b2addee56
parentc1fcb8e05b1b485e577083522898019658b364d8
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