mtp: Simplify code a bit
Only one branch can be taken per call, make this clear by using if/else-if instead of a series of ifs.