From: Bernhard Beschow Date: Fri, 16 Dec 2022 14:57:06 +0000 (+0100) Subject: hw/ppc/virtex_ml507: Prefer local over global variable X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=712622385b6fd0c8cc6a5ff2dad8da7cbfdb0dd3;p=people%2Fpauldu%2Fqemu.git hw/ppc/virtex_ml507: Prefer local over global variable Signed-off-by: Bernhard Beschow Reviewed-by: Edgar E. Iglesias Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20221216145709.271940-4-shentey@gmail.com> Signed-off-by: Daniel Henrique Barboza --- diff --git a/hw/ppc/virtex_ml507.c b/hw/ppc/virtex_ml507.c index 13cace229b..f2f81bd425 100644 --- a/hw/ppc/virtex_ml507.c +++ b/hw/ppc/virtex_ml507.c @@ -157,7 +157,7 @@ static int xilinx_load_device_tree(MachineState *machine, int r; const char *dtb_filename; - dtb_filename = current_machine->dtb; + dtb_filename = machine->dtb; if (dtb_filename) { fdt = load_device_tree(dtb_filename, &fdt_size); if (!fdt) {