lkml.org 
[lkml]   [2012]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip:perf/core] perf: Trivial cleanup of duplicate code
    Commit-ID:  10c250234c98928d1e15c4cea1c44b9a25354ccf
    Gitweb: http://git.kernel.org/tip/10c250234c98928d1e15c4cea1c44b9a25354ccf
    Author: Robert Richter <robert.richter@amd.com>
    AuthorDate: Thu, 5 Apr 2012 18:24:41 +0200
    Committer: Ingo Molnar <mingo@kernel.org>
    CommitDate: Thu, 26 Apr 2012 13:52:50 +0200

    perf: Trivial cleanup of duplicate code

    Removing duplicate code.

    Signed-off-by: Robert Richter <robert.richter@amd.com>
    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1333643084-26776-2-git-send-email-robert.richter@amd.com
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    ---
    arch/x86/kernel/cpu/perf_event.c | 3 ---
    1 files changed, 0 insertions(+), 3 deletions(-)

    diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
    index bb8e034..e33e9cf 100644
    --- a/arch/x86/kernel/cpu/perf_event.c
    +++ b/arch/x86/kernel/cpu/perf_event.c
    @@ -484,9 +484,6 @@ static int __x86_pmu_event_init(struct perf_event *event)

    /* mark unused */
    event->hw.extra_reg.idx = EXTRA_REG_NONE;
    -
    - /* mark not used */
    - event->hw.extra_reg.idx = EXTRA_REG_NONE;
    event->hw.branch_reg.idx = EXTRA_REG_NONE;

    return x86_pmu.hw_config(event);
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2012-04-26 14:23    [W:0.039 / U:33.276 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site