[libvirt] [PATCH 22/22] cpu: Remove NONNULL(1) for cpuBaseline

John Ferlan jferlan at redhat.com
Wed Mar 22 14:21:35 UTC 2017


Since the code checks and handles a NULL 'cpus' anyway, so no need
for the NONNULL.

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/cpu/cpu.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h
index 7d6d3e9..d23409a 100644
--- a/src/cpu/cpu.h
+++ b/src/cpu/cpu.h
@@ -195,8 +195,7 @@ cpuBaseline (virCPUDefPtr *cpus,
              unsigned int ncpus,
              const char **models,
              unsigned int nmodels,
-             unsigned int flags)
-    ATTRIBUTE_NONNULL(1);
+             unsigned int flags);
 
 int
 virCPUUpdate(virArch arch,
-- 
2.9.3




More information about the libvir-list mailing list