Commit a5b429d4 authored by Lachlan McIlroy's avatar Lachlan McIlroy

[XFS] Remove unused variable in ktrace_free()

entries_size is probably left over from when we used to pass the
size to kmem_free().
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
Reviewed-by: default avatarChristoph Hellwig <hch@infradead.org>
Reviewed-by: default avatarEric Sandeen <sandeen@sandeen.net>
parent c6422617
...@@ -113,21 +113,16 @@ ktrace_alloc(int nentries, unsigned int __nocast sleep) ...@@ -113,21 +113,16 @@ ktrace_alloc(int nentries, unsigned int __nocast sleep)
void void
ktrace_free(ktrace_t *ktp) ktrace_free(ktrace_t *ktp)
{ {
int entries_size;
if (ktp == (ktrace_t *)NULL) if (ktp == (ktrace_t *)NULL)
return; return;
/* /*
* Special treatment for the Vnode trace buffer. * Special treatment for the Vnode trace buffer.
*/ */
if (ktp->kt_nentries == ktrace_zentries) { if (ktp->kt_nentries == ktrace_zentries)
kmem_zone_free(ktrace_ent_zone, ktp->kt_entries); kmem_zone_free(ktrace_ent_zone, ktp->kt_entries);
} else { else
entries_size = (int)(ktp->kt_nentries * sizeof(ktrace_entry_t));
kmem_free(ktp->kt_entries); kmem_free(ktp->kt_entries);
}
kmem_zone_free(ktrace_hdr_zone, ktp); kmem_zone_free(ktrace_hdr_zone, ktp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment