vmm: fix "set but not used" warnings
(cherry picked from commit 73505a10760c8b6f459b9c790bbf3a365f990a0b)