mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
[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: Lachlan McIlroy <lachlan@sgi.com> Reviewed-by: Christoph Hellwig <hch@infradead.org> Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
This commit is contained in:
parent
c6422617a1
commit
a5b429d41f
1 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue