hw/mips/malta: Restrict 'bios_size' variable scope
commit74c02ebd80fa331361c431d8dbfcba45a2a36e85
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 8 Mar 2019 09:46:07 +0000 (8 10:46 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 11 Mar 2019 21:53:44 +0000 (11 22:53 +0100)
tree57b4a589a5030020d5d3a32ffa9968548dded1d4
parent5207c595eb8910eee3d329214e65d64e348985d1
hw/mips/malta: Restrict 'bios_size' variable scope

The 'bios_size' variable is only used in the 'if (!kernel_filename &&
!dinfo)' clause. This is the case when we don't provide -pflash command
line option, and also don't provide a -kernel option. In this case we
will check for the -bios option, or use the default BIOS_FILENAME file.

The 'bios' term is valid in this if statement, but is confuse in the
whole mips_malta_init() scope. Restrict his scope.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190308094610.21210-13-armbru@redhat.com>
hw/mips/mips_malta.c