sweep2wake: remove redundant code