Remove superfluous comparison