Get rid of an unnecessary comparison.