x86/NUMA: cleanup
authorJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2015 10:47:08 +0000 (12:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2015 10:47:08 +0000 (12:47 +0200)
commitdb34a096b3aabfea3093867a54c442e41509c8ed
treedc3403d525e06857784b103ea8a62deadada9005
parent83281fc9b31396e94c0bfb6550b75c165037a0ad
x86/NUMA: cleanup

- constification
- prefer container_of() over casts
- check original pointer against NULL instead of the container_of()
  result

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/srat.c
xen/drivers/acpi/numa.c
xen/include/xen/acpi.h