]> xenbits.xensource.com Git - libvirt.git/commit
conf: Drop needless NULL checks guarding virBufferEscapeString()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jun 2024 09:53:46 +0000 (11:53 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jun 2024 14:13:28 +0000 (16:13 +0200)
commitbe58733d903fdd4a9a64483f14dbb4af97e526f3
treef41275a2affcab6fd4587b0ba8327afbfbca61f9
parentcae353ec06db487cb8eaceb972c0fd8dae0c6044
conf: Drop needless NULL checks guarding virBufferEscapeString()

There's no need to guard virBufferEscapeString() with a call to
NULL as the very first thing the function does is check all three
arguments for NULL.

This patch was generated using the following spatch:

  @@
  expression X, Y, E;
  @@

  - if (E)
      virBufferEscapeString(X, Y, E);

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/conf/capabilities.c
src/conf/domain_conf.c
src/conf/network_conf.c
src/conf/node_device_conf.c
src/conf/snapshot_conf.c
src/conf/storage_encryption_conf.c
src/conf/storage_source_conf.c
src/conf/virnwfilterbindingdef.c