diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-04 21:31:51 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-04 21:31:51 -0500 |
commit | a5b429d41fede3a90deb532f5c2318393ed3a17b (patch) | |
tree | 8700e7732879533d951083cacb18cb23561820ff /fs | |
parent | c6422617a1c0d7787e515748b01f594fe43aea98 (diff) |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/support/ktrace.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/support/ktrace.c b/fs/xfs/support/ktrace.c index a34ef05489b1..2d494c26717f 100644 --- a/fs/xfs/support/ktrace.c +++ b/fs/xfs/support/ktrace.c | |||
@@ -113,21 +113,16 @@ ktrace_alloc(int nentries, unsigned int __nocast sleep) | |||
113 | void | 113 | void |
114 | ktrace_free(ktrace_t *ktp) | 114 | ktrace_free(ktrace_t *ktp) |
115 | { | 115 | { |
116 | int entries_size; | ||
117 | |||
118 | if (ktp == (ktrace_t *)NULL) | 116 | if (ktp == (ktrace_t *)NULL) |
119 | return; | 117 | return; |
120 | 118 | ||
121 | /* | 119 | /* |
122 | * Special treatment for the Vnode trace buffer. | 120 | * Special treatment for the Vnode trace buffer. |
123 | */ | 121 | */ |
124 | if (ktp->kt_nentries == ktrace_zentries) { | 122 | if (ktp->kt_nentries == ktrace_zentries) |
125 | kmem_zone_free(ktrace_ent_zone, ktp->kt_entries); | 123 | kmem_zone_free(ktrace_ent_zone, ktp->kt_entries); |
126 | } else { | 124 | else |
127 | entries_size = (int)(ktp->kt_nentries * sizeof(ktrace_entry_t)); | ||
128 | |||
129 | kmem_free(ktp->kt_entries); | 125 | kmem_free(ktp->kt_entries); |
130 | } | ||
131 | 126 | ||
132 | kmem_zone_free(ktrace_hdr_zone, ktp); | 127 | kmem_zone_free(ktrace_hdr_zone, ktp); |
133 | } | 128 | } |