ia64/xen-unstable
changeset 13984:96d08345f1c5
Propagate error return from elf_xen_parse().
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kfraser@localhost.localdomain |
---|---|
date | Thu Feb 15 14:25:58 2007 +0000 (2007-02-15) |
parents | 1f5e6fb9c652 |
children | 9ffe8922414f |
files | xen/arch/x86/domain_build.c |
line diff
1.1 --- a/xen/arch/x86/domain_build.c Thu Feb 15 14:24:11 2007 +0000 1.2 +++ b/xen/arch/x86/domain_build.c Thu Feb 15 14:25:58 2007 +0000 1.3 @@ -262,13 +262,13 @@ int construct_dom0(struct domain *d, 1.4 1.5 nr_pages = compute_dom0_nr_pages(); 1.6 1.7 - if (0 != (rc = elf_init(&elf, image_start, image_len))) 1.8 + if ( (rc = elf_init(&elf, image_start, image_len)) != 0 ) 1.9 return rc; 1.10 #ifdef VERBOSE 1.11 elf_set_verbose(&elf); 1.12 #endif 1.13 elf_parse_binary(&elf); 1.14 - if (0 != (elf_xen_parse(&elf, &parms))) 1.15 + if ( (rc = elf_xen_parse(&elf, &parms)) != 0 ) 1.16 return rc; 1.17 1.18 /* compatibility check */