]> git.proxmox.com Git - mirror_qemu.git/commit
hw/mips/malta: Remove fl_sectors variable
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 8 Mar 2019 09:46:06 +0000 (10:46 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 11 Mar 2019 21:53:44 +0000 (22:53 +0100)
commit5207c595eb8910eee3d329214e65d64e348985d1
tree9bfdd4f5652572b457a1472c2466f4559c234b2e
parent5a4abb197b2ee8e6c545a8ec6e0bf9ca4e470127
hw/mips/malta: Remove fl_sectors variable

Variable fl_sectors is used just once.  Since
fl_sectors = bios_size >> 16 and bios_size = FLASH_SIZE there,
we can simply use FLASH_SIZE >> 16, and eliminate variable.

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-12-armbru@redhat.com>
hw/mips/mips_malta.c