sched: remove redundant code