Remove unnecessary variables in qsort_cmp