virtio-serial: move out discard logic in a separate function
commit6bff86560d42a9c391cf1e502ebd764c293c4d02
authorAmit Shah <amit.shah@redhat.com>
Fri, 7 Jan 2011 09:03:36 +0000 (7 14:33 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 20 Jan 2011 09:07:49 +0000 (20 14:37 +0530)
tree5a28a6fff3c7233bc9adb0280a3990b07d66d779
parent28eaf465316491884952f855f7bfc9dab597e6fb
virtio-serial: move out discard logic in a separate function

Instead of combining flush logic into the discard case and not discard
case, have one function doing discard case.  This will help later when
adding flow control logic to the do_flush_queued_data() function.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-serial-bus.c