diff --git a/cddl/contrib/opensolaris/common/ctf/ctf_hash.c b/cddl/contrib/opensolaris/common/ctf/ctf_hash.c index 5a36fbbd88cf..adab84efde76 100644 --- a/cddl/contrib/opensolaris/common/ctf/ctf_hash.c +++ b/cddl/contrib/opensolaris/common/ctf/ctf_hash.c @@ -77,9 +77,8 @@ ctf_hash_compute(const char *key, size_t len) { ulong_t g, h = 0; const char *p, *q = key + len; - size_t n = 0; - for (p = key; p < q; p++, n++) { + for (p = key; p < q; p++) { h = (h << 4) + *p; if ((g = (h & 0xf0000000)) != 0) {