[libvirt PATCH 00/10] virHashNew refactorings

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

 



"virHashNew" cannot return NULL, yet we check for NULL in various places.

This series is the first of several that remove these checks. Where
applicable, the functions are refactored to use automatic memory management
by means of g_autoptr etc. as well.

Tim Wiederhake (10):
  qemuMonitorGetAllBlockStatsInfo: Clean up line break
  qemuMonitorGetAllBlockStatsInfo: Remove superfluous variable
    initialization
  qemuMonitorGetAllBlockStatsInfo: Assign hash table only on success
  qemuMonitorGetAllBlockStatsInfo: Use automatic memory management
  qemuMonitorGetBlockInfo: Remove superfluous variable "ret"
  qemuMonitorGetBlockInfo: Use automatic memory management
  qemuMonitorGetBlockInfo: `virHashNew` cannot return NULL
  qemuMonitorGetChardevInfo: Remove superfluous variable "ret"
  qemuMonitorGetChardevInfo: Use automatic memory management
  qemuMonitorGetChardevInfo: `virHashNew` cannot return NULL

 src/qemu/qemu_monitor.c | 54 ++++++++++++-----------------------------
 1 file changed, 16 insertions(+), 38 deletions(-)

-- 
2.31.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux