[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] ide/atapi: fix set but unused
From: |
Alon Levy |
Subject: |
[Qemu-devel] [PATCH] ide/atapi: fix set but unused |
Date: |
Thu, 28 Apr 2011 11:07:11 +0300 |
Signed-off-by: Alon Levy <address@hidden>
---
hw/ide/atapi.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 690a0ab..81fa01b 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -1080,12 +1080,14 @@ static const struct {
void ide_atapi_cmd(IDEState *s)
{
+#ifdef DEBUG_IDE_ATAPI
const uint8_t *packet;
+#endif
uint8_t *buf;
- packet = s->io_buffer;
buf = s->io_buffer;
#ifdef DEBUG_IDE_ATAPI
+ packet = s->io_buffer;
{
int i;
printf("ATAPI limit=0x%x packet:", s->lcyl | (s->hcyl << 8));
--
1.7.4.4
- [Qemu-devel] [PATCH] ide/atapi: fix set but unused,
Alon Levy <=