mesa: remove the redundant check