aboutsummaryrefslogtreecommitdiff
path: root/hw/i8259.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-10-07 09:19:48 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-10-16 11:11:09 +0000
commitfc1a5e0a246848c5bba271d39882f8d7b15da682 (patch)
treea3a80c9aa788e3c8fb6560b2e45432e94fff2cce /hw/i8259.c
parent8d484caa84dbaca5597cfbbf657ebdcd8f06b0c3 (diff)
downloadqemu-fc1a5e0a246848c5bba271d39882f8d7b15da682.zip
qemu-fc1a5e0a246848c5bba271d39882f8d7b15da682.tar.gz
qemu-fc1a5e0a246848c5bba271d39882f8d7b15da682.tar.bz2
i8259: Clean up pic_ioport_read
Drop redundant local address variable. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/i8259.c')
-rw-r--r--hw/i8259.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/i8259.c b/hw/i8259.c
index 31962c0..545d723 100644
--- a/hw/i8259.c
+++ b/hw/i8259.c
@@ -385,11 +385,10 @@ static uint32_t pic_poll_read(PicState *s)
return ret;
}
-static uint64_t pic_ioport_read(void *opaque, target_phys_addr_t addr1,
+static uint64_t pic_ioport_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
PicState *s = opaque;
- unsigned int addr = addr1;
int ret;
if (s->poll) {