From: Gerd Hoffmann Date: Fri, 9 Mar 2012 10:11:46 +0000 (+0100) Subject: uhci: renumber uhci_handle_td return codes X-Git-Tag: v1.1-rc0~235^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cd178ca2cabf94e7acaa64eca6714f966edaa0d;p=thirdparty%2Fqemu.git uhci: renumber uhci_handle_td return codes 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 --- diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 25dfc2b1544..fd50be11a35 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;