Remove useless channel end.