Re: [Qemu-devel] [PATCH v2] ioport: Fix duplicated code

2010-11-22 Thread Luiz Capitulino
On Fri, 19 Nov 2010 19:50:10 -0600 Anthony Liguori anth...@codemonkey.ws wrote: On 11/11/2010 08:03 AM, Luiz Capitulino wrote: Functions register_ioport_read() and register_ioport_write() are almost identical, the only difference is that they write to different arrays. Introduce

Re: [Qemu-devel] [PATCH v2] ioport: Fix duplicated code

2010-11-20 Thread Anthony Liguori
On 11/11/2010 08:03 AM, Luiz Capitulino wrote: Functions register_ioport_read() and register_ioport_write() are almost identical, the only difference is that they write to different arrays. Introduce register_ioport_rw() to handle this difference and change both functions to use it instead of

[Qemu-devel] [PATCH v2] ioport: Fix duplicated code

2010-11-11 Thread Luiz Capitulino
Functions register_ioport_read() and register_ioport_write() are almost identical, the only difference is that they write to different arrays. Introduce register_ioport_rw() to handle this difference and change both functions to use it instead of duplicating code. Signed-off-by: Luiz Capitulino