]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Simplify NULL handling in ppc64 driver
authorAndrea Bolognani <abologna@redhat.com>
Fri, 7 Aug 2015 15:39:03 +0000 (17:39 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 11 Aug 2015 09:04:56 +0000 (11:04 +0200)
commit4590f0678f7c74e988f53882e710a67a3b15fc68
tree876f398d406f9aeb2371280d32d6435cabc49fbb
parent2686bf229247279da79505238b001cf45e0b6950
cpu: Simplify NULL handling in ppc64 driver

Use briefer checks, eg. (!model) instead of (model == NULL), and
avoid initializing to NULL a pointer that would be assigned in
the first line of the function anyway.

Also remove a pointless NULL assignment.

No functional changes.
src/cpu/cpu_ppc64.c