mirror of https://github.com/xemu-project/xemu.git
Refactor code to remove one #ifdef CONFIG_FDT
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3f0855b14b
commit
84f1581861
|
@ -52,14 +52,12 @@ static int petalogix_load_device_tree(target_phys_addr_t addr,
|
||||||
target_phys_addr_t initrd_size,
|
target_phys_addr_t initrd_size,
|
||||||
const char *kernel_cmdline)
|
const char *kernel_cmdline)
|
||||||
{
|
{
|
||||||
|
char *path;
|
||||||
|
int fdt_size;
|
||||||
#ifdef CONFIG_FDT
|
#ifdef CONFIG_FDT
|
||||||
void *fdt;
|
void *fdt;
|
||||||
int r;
|
int r;
|
||||||
#endif
|
|
||||||
char *path;
|
|
||||||
int fdt_size;
|
|
||||||
|
|
||||||
#ifdef CONFIG_FDT
|
|
||||||
/* Try the local "mb.dtb" override. */
|
/* Try the local "mb.dtb" override. */
|
||||||
fdt = load_device_tree("mb.dtb", &fdt_size);
|
fdt = load_device_tree("mb.dtb", &fdt_size);
|
||||||
if (!fdt) {
|
if (!fdt) {
|
||||||
|
|
Loading…
Reference in New Issue