|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH 2/5] x86/ioapic: use NULL as a null pointer constant
Resolves violations of MISRA C Rule 11.9.
No functional change.
Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
---
xen/arch/x86/io_apic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c
index d11c880544e6..dd25ba394301 100644
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -207,7 +207,7 @@ struct IO_APIC_route_entry **alloc_ioapic_entries(void)
ioapic_entries = xmalloc_array(struct IO_APIC_route_entry *, nr_ioapics);
if (!ioapic_entries)
- return 0;
+ return NULL;
for (apic = 0; apic < nr_ioapics; apic++) {
ioapic_entries[apic] =
@@ -224,7 +224,7 @@ nomem:
xfree(ioapic_entries[apic]);
xfree(ioapic_entries);
- return 0;
+ return NULL;
}
union entry_union {
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |