Remove redundant comparison