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:
Ian Campbell committed 2012-09-03 11:22:00 +01:00
1 parent 6328e728f6
commit d0a6bfdbf8
1 file changed
+1 -3
+1 -3
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.