Fix "set but not used" warnings in the mps driver.
(cherry picked from commit bcce9c5bedfafd6f0f76c022c8a1e45fa8e9fd0a)