qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 3/3] esp-pci: simple clean up


From: weiqi
Subject: [Qemu-devel] [PATCH 3/3] esp-pci: simple clean up
Date: Fri, 7 Apr 2017 14:59:08 +0800

From: Wei Qi <address@hidden>

It is unnecessary to assign variable 'size' here, because 'size' unused after 
assignment.

Signed-off-by: Wei Qi <address@hidden>
---
 hw/scsi/esp-pci.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c
index e295d88..1f5980e 100644
--- a/hw/scsi/esp-pci.c
+++ b/hw/scsi/esp-pci.c
@@ -192,7 +192,6 @@ static void esp_pci_io_write(void *opaque, hwaddr addr,
         val <<= shift;
         val |= current & ~(mask << shift);
         addr &= ~3;
-        size = 4;
     }
 
     if (addr < 0x40) {
-- 
1.8.3.1





reply via email to

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