Message ID | 01968117d9fc3eee6d6eca0d340d9d2edd4d6dd4.1702553835.git.nicola.vetrini@bugseng.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | address remaining violations of MISRA C:2012 Rule 11.9 | expand |
On Thu, 14 Dec 2023, Nicola Vetrini wrote: > Resolves violations of MISRA C Rule 11.9. > No functional change. > > Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
On 14.12.2023 22:30, Stefano Stabellini wrote: > On Thu, 14 Dec 2023, Nicola Vetrini wrote: >> Resolves violations of MISRA C Rule 11.9. >> No functional change. >> >> Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com> > > Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Acked-by: Jan Beulich <jbeulich@suse.com>
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 {
Resolves violations of MISRA C Rule 11.9. No functional change. Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com> --- xen/arch/x86/io_apic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)