mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
drivers/perf: arm_pmu: Fix some coding style issues
Fix some coding style issues reported by checkpatch.pl, including following types: ERROR: spaces required around that '=' (ctx:VxW) WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Junhao He <hejunhao2@hisilicon.com> Signed-off-by: Jay Fang <f.fangjian@huawei.com> Link: https://lore.kernel.org/r/1620736054-58412-3-git-send-email-f.fangjian@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
27e4482075
commit
f265fd166b
1 changed files with 2 additions and 4 deletions
|
@ -670,7 +670,7 @@ int armpmu_request_irq(int irq, int cpu)
|
|||
&cpu_armpmu);
|
||||
irq_ops = &percpu_pmuirq_ops;
|
||||
} else {
|
||||
has_nmi= true;
|
||||
has_nmi = true;
|
||||
irq_ops = &percpu_pmunmi_ops;
|
||||
}
|
||||
} else {
|
||||
|
@ -869,10 +869,8 @@ static struct arm_pmu *__armpmu_alloc(gfp_t flags)
|
|||
int cpu;
|
||||
|
||||
pmu = kzalloc(sizeof(*pmu), flags);
|
||||
if (!pmu) {
|
||||
pr_info("failed to allocate PMU device!\n");
|
||||
if (!pmu)
|
||||
goto out;
|
||||
}
|
||||
|
||||
pmu->hw_events = alloc_percpu_gfp(struct pmu_hw_events, flags);
|
||||
if (!pmu->hw_events) {
|
||||
|
|
Loading…
Reference in a new issue