30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From e0142fbd0fe30ae684079342881bfb0e45be51b6 Mon Sep 17 00:00:00 2001
|
|
From: gubin <gubin_yewu@cmss.chinamobile.com>
|
|
Date: Tue, 29 Oct 2024 13:48:06 +0800
|
|
Subject: [PATCH 13/20] simplify CoreSpeData call by removing redundant buf
|
|
assignment
|
|
|
|
Removed unnecessary assignment to buf and directly operated on the provided buffer.
|
|
|
|
Signed-off-by: gubin <gubin_yewu@cmss.chinamobile.com>
|
|
---
|
|
pmu/spe.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/pmu/spe.cpp b/pmu/spe.cpp
|
|
index 99b7a89..5083ff0 100644
|
|
--- a/pmu/spe.cpp
|
|
+++ b/pmu/spe.cpp
|
|
@@ -529,7 +529,7 @@ int Spe::SpeReadData(struct SpeContext *context, struct SpeRecord *buf, int size
|
|
int remainSize = size;
|
|
int dummySize = context->dummyMmapSize;
|
|
CoreDummyData(context->coreCtxes, dummyData, dummySize, context->pageSize);
|
|
- buf = CoreSpeData(context->coreCtxes, dummyData, buf, &remainSize, context->pageSize, cpu);
|
|
+ CoreSpeData(context->coreCtxes, dummyData, buf, &remainSize, context->pageSize, cpu);
|
|
return size - remainSize;
|
|
}
|
|
|
|
--
|
|
2.43.0
|
|
|