[libvirt PATCH 00/10] virHashNew refactorings - part VI

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

 



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

See https://listman.redhat.com/archives/libvir-list/2021-July/msg00074.html.

Tim Wiederhake (10):
  qemuStateInitialize: `virHashNew` cannot return NULL
  qemuMonitorGetPRManagerInfo: `virHashNew` cannot return NULL
  qemuMonitorGetPRManagerInfo: Use automatic memory management
  qemuMonitorGetPRManagerInfo: Remove superfluous `goto`s
  qemuMonitorJSONGetAllBlockJobInfo: `virHashNew` cannot return NULL
  qemuMonitorJSONGetAllBlockJobInfo: Use automatic memory management
  qemuMonitorJSONGetAllBlockJobInfo: Remove superfluous `goto`s
  testQemuGetLatestCaps: `virHashNew` cannot return NULL
  testQemuGetLatestCaps: Use automatic memory management
  testQemuGetLatestCaps: Remove superfluous `goto`s

 src/qemu/qemu_driver.c       |  3 +--
 src/qemu/qemu_monitor.c      | 13 +++----------
 src/qemu/qemu_monitor_json.c | 26 ++++++++------------------
 tests/testutilsqemu.c        | 13 +++----------
 4 files changed, 15 insertions(+), 40 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