diff mbox

kvm: qemu: fix qemu_send_packet

Message ID 1232101150-21663-1-git-send-email-markmc@redhat.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Mark McLoughlin Jan. 16, 2009, 10:19 a.m. UTC
KVM's qemu_send_packet() has a return value, qemu's doesn't.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
 qemu/net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Avi Kivity Jan. 18, 2009, 12:11 p.m. UTC | #1
Mark McLoughlin wrote:
> KVM's qemu_send_packet() has a return value, qemu's doesn't.
>
>   

Applied, thanks.
diff mbox

Patch

diff --git a/qemu/net.c b/qemu/net.c
index f9b239f..9841197 100644
--- a/qemu/net.c
+++ b/qemu/net.c
@@ -391,7 +391,7 @@  int qemu_send_packet(VLANClientState *vc1, const uint8_t *buf, int size)
     int ret = -EAGAIN;
 
     if (vc1->link_down)
-        return;
+        return 0;
 
 #ifdef DEBUG_NET
     printf("vlan %d send:\n", vlan->id);