projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8788d8
)
perf: arm_spe: Remove unnecessary zero check on 'nr_pages'
author
luanshi
<zhangliguang@linux.alibaba.com>
Wed, 26 Feb 2020 04:25:06 +0000
(12:25 +0800)
committer
Will Deacon
<will@kernel.org>
Mon, 2 Mar 2020 11:27:21 +0000
(11:27 +0000)
We already check that the 'nr_pages' is > 2, so there's no need to check
that it's != 0 later on.
Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_spe_pmu.c
patch
|
blob
|
history
diff --git
a/drivers/perf/arm_spe_pmu.c
b/drivers/perf/arm_spe_pmu.c
index
4e4984a
..
b72c048
100644
(file)
--- a/
drivers/perf/arm_spe_pmu.c
+++ b/
drivers/perf/arm_spe_pmu.c
@@
-831,7
+831,7
@@
static void *arm_spe_pmu_setup_aux(struct perf_event *event, void **pages,
* parts and give userspace a fighting chance of getting some
* useful data out of it.
*/
- if (
!nr_pages || (snapshot && (nr_pages & 1)
))
+ if (
snapshot && (nr_pages & 1
))
return NULL;
if (cpu == -1)