qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 02/17] atapi: clear sense code


From: Hannes Reinecke
Subject: [Qemu-devel] [PATCH 02/17] atapi: clear sense code
Date: Wed, 29 Oct 2014 08:53:37 +0100

The sense code needs to be cleared after REQUEST SENSE.

Signed-off-by: Hannes Reinecke <address@hidden>
---
 hw/ide/atapi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 10218df..fca9174 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -611,9 +611,7 @@ static void cmd_request_sense(IDEState *s, uint8_t *buf)
     buf[7] = 10;
     buf[12] = s->asc;
 
-    if (s->sense_key == UNIT_ATTENTION) {
-        s->sense_key = NO_SENSE;
-    }
+    s->sense_key = NO_SENSE;
 
     ide_atapi_cmd_reply(s, 18, max_len);
 }
-- 
1.8.4.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]