summaryrefslogtreecommitdiff
path: root/hw/usb/hcd-uhci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-03-09 11:11:46 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-03-13 10:15:32 +0100
commit0cd178ca2cabf94e7acaa64eca6714f966edaa0d (patch)
tree10b61b595f01d5332fdc2a79c9014984a90b72de /hw/usb/hcd-uhci.c
parent60e1b2a6ddf1fd9cc93ad81d8ba7d8ac4369cc78 (diff)
downloadqemu-0cd178ca2cabf94e7acaa64eca6714f966edaa0d.tar.gz
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 <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-uhci.c')
-rw-r--r--hw/usb/hcd-uhci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 25dfc2b154..fd50be11a3 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;