From patchwork Tue Mar 13 12:20:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 146393 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BFBC0B6EF1 for ; Tue, 13 Mar 2012 23:20:59 +1100 (EST) Received: from localhost ([::1]:49157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Qin-0007b4-HO for incoming@patchwork.ozlabs.org; Tue, 13 Mar 2012 08:20:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7QiR-0007KP-H6 for qemu-devel@nongnu.org; Tue, 13 Mar 2012 08:20:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7Qi9-0000vz-2k for qemu-devel@nongnu.org; Tue, 13 Mar 2012 08:20:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Qi8-0000vM-RP for qemu-devel@nongnu.org; Tue, 13 Mar 2012 08:20:17 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2DCKF5d019638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Mar 2012 08:20:15 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q2DCKEkH031912; Tue, 13 Mar 2012 08:20:15 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id B5F7E4288F; Tue, 13 Mar 2012 13:20:12 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 13 Mar 2012 13:20:08 +0100 Message-Id: <1331641211-20077-12-git-send-email-kraxel@redhat.com> In-Reply-To: <1331641211-20077-1-git-send-email-kraxel@redhat.com> References: <1331641211-20077-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 11/14] uhci: renumber uhci_handle_td return codes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Step #2 (separate for better bisectability): renumber so the silly '-1' goes away. Pick a range which doesn't overlap the old values. Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-uhci.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 25dfc2b..fd50be1 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -78,10 +78,10 @@ #define NB_PORTS 2 enum { - TD_RESULT_STOP_FRAME = -1, - TD_RESULT_COMPLETE = 0, - TD_RESULT_NEXT_QH = 1, - TD_RESULT_ASYNC = 2, + TD_RESULT_STOP_FRAME = 10, + TD_RESULT_COMPLETE, + TD_RESULT_NEXT_QH, + TD_RESULT_ASYNC, }; typedef struct UHCIState UHCIState;