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>
This commit is contained in:
+1
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user