diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 9ad4978700e0..5fd49e47f83a 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -428,18 +428,11 @@ static int slabstats_open(struct inode *inode, struct file *file) | |||
428 | return ret; | 428 | return ret; |
429 | } | 429 | } |
430 | 430 | ||
431 | static int slabstats_release(struct inode *inode, struct file *file) | ||
432 | { | ||
433 | struct seq_file *m = file->private_data; | ||
434 | kfree(m->private); | ||
435 | return seq_release(inode, file); | ||
436 | } | ||
437 | |||
438 | static const struct file_operations proc_slabstats_operations = { | 431 | static const struct file_operations proc_slabstats_operations = { |
439 | .open = slabstats_open, | 432 | .open = slabstats_open, |
440 | .read = seq_read, | 433 | .read = seq_read, |
441 | .llseek = seq_lseek, | 434 | .llseek = seq_lseek, |
442 | .release = slabstats_release, | 435 | .release = seq_release_private, |
443 | }; | 436 | }; |
444 | #endif | 437 | #endif |
445 | #endif | 438 | #endif |