diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2009-12-15 12:02:00 -0500 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-15 12:02:00 -0500 |
| commit | ee931dce6dc7bb24223051bbdf09ac02bdc59b31 (patch) | |
| tree | 8233e147f1d99d71fdff0fbe2522daf67ed9e8c7 | |
| parent | d0d8041d2fe147b5c1a825012026a8386f3421e8 (diff) | |
Remove duplicate setting of offset
The offset was set at the beginning and again during updating
of the page in get_page.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| -rw-r--r-- | trace-input.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/trace-input.c b/trace-input.c index feddf83..ac729b4 100644 --- a/trace-input.c +++ b/trace-input.c | |||
| @@ -604,8 +604,6 @@ static int get_page(struct tracecmd_input *handle, int cpu, | |||
| 604 | if (handle->cpu_data[cpu].page) | 604 | if (handle->cpu_data[cpu].page) |
| 605 | free_page(handle, cpu); | 605 | free_page(handle, cpu); |
| 606 | 606 | ||
| 607 | handle->cpu_data[cpu].offset = offset; | ||
| 608 | |||
| 609 | handle->cpu_data[cpu].page = mmap(NULL, handle->page_size, PROT_READ, MAP_PRIVATE, | 607 | handle->cpu_data[cpu].page = mmap(NULL, handle->page_size, PROT_READ, MAP_PRIVATE, |
| 610 | handle->fd, offset); | 608 | handle->fd, offset); |
| 611 | if (handle->cpu_data[cpu].page == MAP_FAILED) | 609 | if (handle->cpu_data[cpu].page == MAP_FAILED) |
