mesa: remove redundant error check