qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/1] char: Add a QemuChrHandlers struct to initi


From: Amit Shah
Subject: Re: [Qemu-devel] [PATCH 1/1] char: Add a QemuChrHandlers struct to initialise chardev handlers
Date: Fri, 10 Feb 2012 22:39:04 +0530

On (Fri) 10 Feb 2012 [07:28:19], Anthony Liguori wrote:
> On 02/10/2012 07:19 AM, Amit Shah wrote:
> >Instead of passing each handler in the qemu_add_handlers() function,
> >create a struct of handlers that can be passed to the function instead.
> >
> >Signed-off-by: Amit Shah<address@hidden>
> 
> Why?

It's a good cleanup.

> It's not a win in terms of code size.  If you plan on introducing
> additional handlers, perhaps you should include this in that series
> where it's more appropriately justified.
> 
> As a change on it's own, it doesn't seem to make a lot of sense.

Makes the code much easier to look at.  Can't really compare on code
size, since there's zero change in the resulting binary, but the code
just becomes more readable and manageable.

                Amit



reply via email to

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