msi-wmi: replace one-condition switch-case with if statement