summaryrefslogtreecommitdiffstats
path: root/mm/kmemleak.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2014-04-03 23:46:28 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-04 01:20:50 +0200
commit5f3bf19aeb8ed5cef0926bc10c80b6a50ac6bdeb (patch)
tree95f86bb624bc93348564911d93b85fc07bf50f94 /mm/kmemleak.c
parentkmemleak: allow freeing internal objects after kmemleak was disabled (diff)
downloadlinux-5f3bf19aeb8ed5cef0926bc10c80b6a50ac6bdeb.tar.xz
linux-5f3bf19aeb8ed5cef0926bc10c80b6a50ac6bdeb.zip
kmemleak: remove redundant code
Remove kmemleak_padding() and kmemleak_release(). Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/kmemleak.c')
-rw-r--r--mm/kmemleak.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index 06cd22035a92..6f90d003830a 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -1549,11 +1549,6 @@ static int kmemleak_open(struct inode *inode, struct file *file)
return seq_open(file, &kmemleak_seq_ops);
}
-static int kmemleak_release(struct inode *inode, struct file *file)
-{
- return seq_release(inode, file);
-}
-
static int dump_str_object_info(const char *str)
{
unsigned long flags;
@@ -1691,7 +1686,7 @@ static const struct file_operations kmemleak_fops = {
.read = seq_read,
.write = kmemleak_write,
.llseek = seq_lseek,
- .release = kmemleak_release,
+ .release = seq_release,
};
static void __kmemleak_do_cleanup(void)