iwm: Fix -Wunused-but-set-variable warnings
(cherry picked from commit 1dc8ed06f37a0d5ff4b78791885d7ba6dd3e407b)