diff options
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 | } |