mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
arm: correctly check for error on dom0 allocation
Drop the redundant printk Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Jan Beulich <JBeulich@suse.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
6328e728f6
commit
d0a6bfdbf8
1 file changed
+1
-3
@@ -238,9 +238,7 @@ void __init start_xen(unsigned long boot_phys_offset,
|
||||
|
||||
/* Create initial domain 0. */
|
||||
dom0 = domain_create(0, 0, 0);
|
||||
if ( IS_ERR(dom0) )
|
||||
printk("domain_create failed\n");
|
||||
if ( (dom0 == NULL) || (alloc_dom0_vcpu0() == NULL) )
|
||||
if ( IS_ERR(dom0) || (alloc_dom0_vcpu0() == NULL) )
|
||||
panic("Error creating domain 0\n");
|
||||
|
||||
dom0->is_privileged = 1;
|
||||
|
||||