]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/i386: make explicit clearing of pch_rev_id
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 9 Sep 2020 11:27:38 +0000 (12:27 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 10 Sep 2020 09:44:01 +0000 (10:44 +0100)
commitc768eef18c18087d39eaf0e090629dbbca0f51dc
treed7ad0d127b63bfb3c6b704807fa5e74662320435
parent2d838d9bae05b76af574330cf6707527568abe03
hw/i386: make explicit clearing of pch_rev_id

Some compilers (notably the Xenial gcc in Travis) fail to spot that
this will always be set if pch_dev_id != 0xffff. Given this is setup
code and using _Pragma to override is equally as ugly lets just remove
the doubt from the compilers mind.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200909112742.25730-8-alex.bennee@linaro.org>
hw/i386/pc_piix.c