aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 55e48511d7c8..086d36316805 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3666,7 +3666,6 @@ tracing_buffers_read(struct file *filp, char __user *ubuf,
3666 size_t count, loff_t *ppos) 3666 size_t count, loff_t *ppos)
3667{ 3667{
3668 struct ftrace_buffer_info *info = filp->private_data; 3668 struct ftrace_buffer_info *info = filp->private_data;
3669 unsigned int pos;
3670 ssize_t ret; 3669 ssize_t ret;
3671 size_t size; 3670 size_t size;
3672 3671
@@ -3693,11 +3692,6 @@ tracing_buffers_read(struct file *filp, char __user *ubuf,
3693 if (ret < 0) 3692 if (ret < 0)
3694 return 0; 3693 return 0;
3695 3694
3696 pos = ring_buffer_page_len(info->spare);
3697
3698 if (pos < PAGE_SIZE)
3699 memset(info->spare + pos, 0, PAGE_SIZE - pos);
3700
3701read: 3695read:
3702 size = PAGE_SIZE - info->read; 3696 size = PAGE_SIZE - info->read;
3703 if (size > count) 3697 if (size > count)