[PATCH v2 48/50] image: Reduce variable scope in boot_get_fdt()