[libvirt PATCH 00/10] virHashNew refactorings

Tim Wiederhake posted 10 patches 2 years, 9 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210705153649.236145-1-twiederh@redhat.com
There is a newer version of this series
src/qemu/qemu_monitor.c | 54 ++++++++++++-----------------------------
1 file changed, 16 insertions(+), 38 deletions(-)
[libvirt PATCH 00/10] virHashNew refactorings
Posted by Tim Wiederhake 2 years, 9 months ago
"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