提交 fc1a5e0a 编写于 作者: J Jan Kiszka 提交者: Blue Swirl

i8259: Clean up pic_ioport_read

Drop redundant local address variable.
Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 8d484caa
...@@ -385,11 +385,10 @@ static uint32_t pic_poll_read(PicState *s) ...@@ -385,11 +385,10 @@ static uint32_t pic_poll_read(PicState *s)
return ret; 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) unsigned size)
{ {
PicState *s = opaque; PicState *s = opaque;
unsigned int addr = addr1;
int ret; int ret;
if (s->poll) { if (s->poll) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册