[libvirt] [PATCH] esx: Remove redundant checks for esxVI_LookupHostSystemProperties result

Michal Privoznik mprivozn at redhat.com
Mon Aug 6 08:28:31 UTC 2012


On 05.08.2012 13:48, Matthias Bolte wrote:
> esxVI_LookupHostSystemProperties guarantees that hostSystem is non-NULL.
> Remove redundant NULL checks from callers.
> 
> Also prefer esxVI_GetStringValue over open-coding the logic.
> ---
>  src/esx/esx_driver.c   |   82 +++++++++---------------------------------------
>  src/esx/esx_vi.c       |    4 +-
>  src/esx/esx_vi_types.c |    3 +-
>  3 files changed, 19 insertions(+), 70 deletions(-)
> 

ACK

Michal




More information about the libvir-list mailing list