[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] ide/atapi: fix set but unused
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 4/6] ide/atapi: fix set but unused |
Date: |
Tue, 3 May 2011 13:08:24 +0200 |
From: Alon Levy <address@hidden>
Signed-off-by: Alon Levy <address@hidden>
Acked-by: Stefan Weil <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
hw/ide/atapi.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 58febc0..fe2fb0b 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -1080,17 +1080,15 @@ static const struct {
void ide_atapi_cmd(IDEState *s)
{
- const uint8_t *packet;
uint8_t *buf;
- packet = s->io_buffer;
buf = s->io_buffer;
#ifdef DEBUG_IDE_ATAPI
{
int i;
printf("ATAPI limit=0x%x packet:", s->lcyl | (s->hcyl << 8));
for(i = 0; i < ATAPI_PACKET_SIZE; i++) {
- printf(" %02x", packet[i]);
+ printf(" %02x", buf[i]);
}
printf("\n");
}
--
1.7.2.3
- [Qemu-devel] [PULL 0/6] Block patches, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 1/6] qemu-img resize: Fix option parsing, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 2/6] atapi: Move comment to proper place, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 3/6] atapi: Explain why we need a 'media not present' state, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 5/6] qemu-progress.c: printf isn't signal safe, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 4/6] ide/atapi: fix set but unused,
Kevin Wolf <=
- [Qemu-devel] [PATCH 6/6] NBD: Avoid leaking a couple of strings when the NBD device is closed, Kevin Wolf, 2011/05/03
- Re: [Qemu-devel] [PULL 0/6] Block patches, Anthony Liguori, 2011/05/03