[XFS] Remove unused variable in ktrace_free()
authorLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 5 Dec 2008 02:31:51 +0000 (13:31 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 5 Dec 2008 02:31:51 +0000 (13:31 +1100)
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>
fs/xfs/support/ktrace.c

index a34ef05489b1c323369c7b22cf40400febaa28dd..2d494c26717f47e14aa1fb90aeb65d75ec5f6abc 100644 (file)
@@ -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);
 }