Revert "autosmp: optimize the nested if statements"

This reverts commit 470c96f80dd999f7badd463e54d840f09b4dd84c.