Patchwork [05/13] ide: microdrive cycle field is set as uint8_t

login
register
mail settings
Submitter Juan Quintela
Date Oct. 14, 2009, 11:37 a.m.
Message ID <c0714c54e3c41a8baaaf1cada89df8bb34fa6a68.1255520033.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/35948/
State New
Headers show

Comments

Juan Quintela - Oct. 14, 2009, 11:37 a.m.
Really, it is used as a boolean

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/ide/microdrive.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/ide/microdrive.c b/hw/ide/microdrive.c
index aeb77a0..49a9b93 100644
--- a/hw/ide/microdrive.c
+++ b/hw/ide/microdrive.c
@@ -51,7 +51,7 @@  typedef struct {

     uint8_t ctrl;
     uint16_t io;
-    int cycle;
+    uint8_t cycle;
 } MicroDriveState;

 /* Register bitfields */