libvirt/src/phyp
Michal Privoznik 5772885d28 lib: Use more of VIR_STEAL_PTR()
We have this very handy macro called VIR_STEAL_PTR() which steals
one pointer into the other and sets the other to NULL. The
following coccinelle patch was used to create this commit:

  @ rule1 @
  identifier a, b;
  @@

  - b = a;
    ...
  - a = NULL;
  + VIR_STEAL_PTR(b, a);

Some places were clean up afterwards to make syntax-check happy
(e.g. some curly braces were removed where the body become a one
liner).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2019-01-28 14:46:58 +01:00
..
Makefile.inc.am make: split PHyp driver build rules into phyp/Makefile.inc.am 2018-02-23 13:14:25 +00:00
phyp_driver.c lib: Use more of VIR_STEAL_PTR() 2019-01-28 14:46:58 +01:00
phyp_driver.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00