vmbus: simplify hv_ringbuffer_read
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 25 Jun 2017 19:30:24 +0000 (12:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 15:15:10 +0000 (17:15 +0200)
commit4226ff69a3dff78bead7d9a270423cd21f8d40b8
treec589bdebe4d03591e182d9fcedee6f204424b06d
parent133d55cdb2f1f9e258d6dc34594a6c565f10b3fd
vmbus: simplify hv_ringbuffer_read

With new iterator functions (and the double mapping) the ring buffer
read function can be greatly simplified.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/ring_buffer.c