Re: [Qemu-devel] [PATCH] smbios: use g_free directly on NULL pointers

2014-06-05 Thread Benoît Canet
The Wednesday 04 Jun 2014 à 18:00:28 (+0200), Paolo Bonzini wrote : > No need to wrap it with an if. > > Signed-off-by: Paolo Bonzini > --- > hw/i386/smbios.c | 9 ++--- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/hw/i386/smbios.c b/hw/i386/smbios.c > index 7660718..a

[Qemu-devel] [PATCH] smbios: use g_free directly on NULL pointers

2014-06-04 Thread Paolo Bonzini
No need to wrap it with an if. Signed-off-by: Paolo Bonzini --- hw/i386/smbios.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/hw/i386/smbios.c b/hw/i386/smbios.c index 7660718..ab89420 100644 --- a/hw/i386/smbios.c +++ b/hw/i386/smbios.c @@ -740,11 +740,6 @@ void