Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1218660
| From | Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [[PATCH v6 01/10] sparc/perf: Remove unnecessary assignment |
| Date | 2015-09-04 05:20 +0200 |
| Message-ID | <q4PHI-6yv-21@gated-at.bofh.it> (permalink) |
| References | <q4Py2-6nf-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
In ->commit_txn() 'cpuc' is already initialized when it is declared, so we can remove the duplicate assignment. Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> --- arch/sparc/kernel/perf_event.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/kernel/perf_event.c b/arch/sparc/kernel/perf_event.c index 689db65..e3f89c7 100644 --- a/arch/sparc/kernel/perf_event.c +++ b/arch/sparc/kernel/perf_event.c @@ -1528,7 +1528,6 @@ static int sparc_pmu_commit_txn(struct pmu *pmu) if (!sparc_pmu) return -EINVAL; - cpuc = this_cpu_ptr(&cpu_hw_events); n = cpuc->n_events; if (check_excludes(cpuc->event, 0, n)) return -EINVAL; -- 1.7.9.5 -- 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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6 0/10] perf: Implement group-read of events using txn interface Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 06/10] perf: Invert perf_read_group() loops Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 10/10] perf: Drop PERF_EVENT_TXN Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 07/10] perf: Add return value for perf_event_read(). Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 09/10] powerpc/perf/hv-24x7: Use PMU_TXN_READ interface Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 03/10] perf: Split perf_event_read() and perf_event_count() Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 01/10] sparc/perf: Remove unnecessary assignment Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 08/10] Define PERF_PMU_TXN_READ interface Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
[[PATCH v6 02/10] perf: Add a flags parameter to pmu txn interfaces Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-09-04 05:20 +0200
Re: [[PATCH v6 02/10] perf: Add a flags parameter to pmu txn interfaces Michael Ellerman <mpe@ellerman.id.au> - 2015-09-04 12:10 +0200
csiph-web