[PATCH] remove duplicated resume path code