Skip to content

Commit

Permalink
[XFS] Remove unused variable in ktrace_free()
Browse files Browse the repository at this point in the history
entries_size is probably left over from when we used to pass the
size to kmem_free().

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
  • Loading branch information
Lachlan McIlroy committed Dec 5, 2008
1 parent c642261 commit a5b429d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions fs/xfs/support/ktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,21 +113,16 @@ ktrace_alloc(int nentries, unsigned int __nocast sleep)
void
ktrace_free(ktrace_t *ktp)
{
int entries_size;

if (ktp == (ktrace_t *)NULL)
return;

/*
* 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);
} else {
entries_size = (int)(ktp->kt_nentries * sizeof(ktrace_entry_t));

else
kmem_free(ktp->kt_entries);
}

kmem_zone_free(ktrace_hdr_zone, ktp);
}
Expand Down

0 comments on commit a5b429d

Please sign in to comment.