hw/i386/kvmvapic: Remove dead code in patch_hypercalls()
commita1f910875668d87e139e79fce38e9c2e1c3747dd
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Jan 2017 17:05:21 +0000 (9 17:05 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 24 Jan 2017 20:26:53 +0000 (24 23:26 +0300)
tree6421b9190e9606de06aadcf94ca50292b9e5a8d3
parent9d7b2670a334f9256f926da133e36a8a2f2299bd
hw/i386/kvmvapic: Remove dead code in patch_hypercalls()

The patch_hypercalls() function sets up a 'patches'
variable and checks it at the end of the function, but
never modifies it in the middle. Remove this dead code,
which seems to have been present since the function was
added in commit e5ad936b0fd7 in 2012.

(Spotted by Coverity: CID 1005581.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/kvmvapic.c