Commit f265fd16 authored by Junhao He's avatar Junhao He Committed by Will Deacon
Browse files

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: default avatarJunhao He <hejunhao2@hisilicon.com>
Signed-off-by: default avatarJay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1620736054-58412-3-git-send-email-f.fangjian@huawei.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 27e44820
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -869,10 +869,8 @@ static struct arm_pmu *__armpmu_alloc(gfp_t flags)
	int cpu;
	int cpu;


	pmu = kzalloc(sizeof(*pmu), flags);
	pmu = kzalloc(sizeof(*pmu), flags);
	if (!pmu) {
	if (!pmu)
		pr_info("failed to allocate PMU device!\n");
		goto out;
		goto out;
	}


	pmu->hw_events = alloc_percpu_gfp(struct pmu_hw_events, flags);
	pmu->hw_events = alloc_percpu_gfp(struct pmu_hw_events, flags);
	if (!pmu->hw_events) {
	if (!pmu->hw_events) {