diff options
author | Li Zefan <lizefan@huawei.com> | 2014-04-03 17:46:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 19:20:50 -0400 |
commit | 5f3bf19aeb8ed5cef0926bc10c80b6a50ac6bdeb (patch) | |
tree | 95f86bb624bc93348564911d93b85fc07bf50f94 /mm/kmemleak.c | |
parent | c89da70c7360294e715df5abd4b7239db3274c86 (diff) |
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.c | 7 |
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) | |||
1549 | return seq_open(file, &kmemleak_seq_ops); | 1549 | return seq_open(file, &kmemleak_seq_ops); |
1550 | } | 1550 | } |
1551 | 1551 | ||
1552 | static int kmemleak_release(struct inode *inode, struct file *file) | ||
1553 | { | ||
1554 | return seq_release(inode, file); | ||
1555 | } | ||
1556 | |||
1557 | static int dump_str_object_info(const char *str) | 1552 | static int dump_str_object_info(const char *str) |
1558 | { | 1553 | { |
1559 | unsigned long flags; | 1554 | unsigned long flags; |
@@ -1691,7 +1686,7 @@ static const struct file_operations kmemleak_fops = { | |||
1691 | .read = seq_read, | 1686 | .read = seq_read, |
1692 | .write = kmemleak_write, | 1687 | .write = kmemleak_write, |
1693 | .llseek = seq_lseek, | 1688 | .llseek = seq_lseek, |
1694 | .release = kmemleak_release, | 1689 | .release = seq_release, |
1695 | }; | 1690 | }; |
1696 | 1691 | ||
1697 | static void __kmemleak_do_cleanup(void) | 1692 | static void __kmemleak_do_cleanup(void) |