R600/SI: Minor cleanup of function