vmm: fix "set but not used" warnings
(cherry picked from commit 2062ce996ddd39ba7a36c2caf8c898686d9cb2fe)