mesa/st: remove impossible error-check