infra: replace pointless memcmp