Remove redundant != 0 checks