summaryrefslogtreecommitdiffstats
path: root/drivers/hv/ring_buffer.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2015-12-15 04:02:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-15 04:27:30 +0100
commit667d374064b0cc48b6122101b287908d1b392bdb (patch)
tree98f9289da0d4309082a423daa430b141daa50fbc /drivers/hv/ring_buffer.c
parentDrivers: hv: ring_buffer: remove code duplication from hv_ringbuffer_peek/read() (diff)
downloadlinux-667d374064b0cc48b6122101b287908d1b392bdb.tar.xz
linux-667d374064b0cc48b6122101b287908d1b392bdb.zip
Drivers: hv: remove code duplication between vmbus_recvpacket()/vmbus_recvpacket_raw()
vmbus_recvpacket() and vmbus_recvpacket_raw() are almost identical but there are two discrepancies: 1) vmbus_recvpacket() doesn't propagate errors from hv_ringbuffer_read() which looks like it is not desired. 2) There is an error message printed in packetlen > bufferlen case in vmbus_recvpacket(). I'm removing it as it is usless for users to see such messages and /vmbus_recvpacket_raw() doesn't have it. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions