Remove redundant condition variable.