vmm: fix set but not used warning
(cherry picked from commit 893a3dd697ef4ac0a432ca8ce8790661884eb1ea)