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

2010-11-10 Thread Stefan Weil
Am 10.11.2010 15:21, schrieb 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() to handle this difference and change both functions to use it instead of duplic

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

2010-11-10 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() to handle this difference and change both functions to use it instead of duplicating code. Signed-off-by: Luiz Capitulino ---