Skip to content

Commit

Permalink
perf mmap: Cleanup perf_mmap__push()
Browse files Browse the repository at this point in the history
The first assignment for 'start' and 'end' is redundant.

Signed-off-by: Kan Liang <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
kliang2 authored and acmel committed Feb 15, 2018
1 parent dc6c35c commit f92c8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ int perf_mmap__push(struct perf_mmap *md, bool overwrite,
{
u64 head = perf_mmap__read_head(md);
u64 old = md->prev;
u64 end = head, start = old;
u64 end, start;
unsigned char *data = md->base + page_size;
unsigned long size;
void *buf;
Expand Down

0 comments on commit f92c8cb

Please sign in to comment.