Fix some vacuous comparisons.