From patchwork Fri Jan 16 10:19:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark McLoughlin X-Patchwork-Id: 2781 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0GAF2Z8004223 for ; Fri, 16 Jan 2009 02:15:02 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755575AbZAPKTO (ORCPT ); Fri, 16 Jan 2009 05:19:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756259AbZAPKTO (ORCPT ); Fri, 16 Jan 2009 05:19:14 -0500 Received: from mail10.svc.cra.dublin.eircom.net ([159.134.118.26]:35425 "HELO mail10.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755575AbZAPKTN (ORCPT ); Fri, 16 Jan 2009 05:19:13 -0500 Received: (qmail 38160 messnum 12158026 invoked from network[83.71.77.218/83-71-77-218-dynamic.b-ras1.srl.dublin.eircom.net]); 16 Jan 2009 10:19:11 -0000 Received: from 83-71-77-218-dynamic.b-ras1.srl.dublin.eircom.net (HELO blaa.localdomain) (83.71.77.218) by mail10.svc.cra.dublin.eircom.net (qp 38160) with SMTP; 16 Jan 2009 10:19:11 -0000 Received: by blaa.localdomain (Postfix, from userid 500) id 7403B2E411F; Fri, 16 Jan 2009 10:19:10 +0000 (GMT) From: Mark McLoughlin To: avi@redhat.com Cc: kvm@vger.kernel.org, Mark McLoughlin Subject: [PATCH] kvm: qemu: fix qemu_send_packet Date: Fri, 16 Jan 2009 10:19:10 +0000 Message-Id: <1232101150-21663-1-git-send-email-markmc@redhat.com> X-Mailer: git-send-email 1.6.0.6 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org KVM's qemu_send_packet() has a return value, qemu's doesn't. Signed-off-by: Mark McLoughlin --- qemu/net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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);