Skip to content

Commit ccb064d

Browse files
committed
Enforce consistent function name style
Tracked-On: OAM-130974 Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>
1 parent 71ed896 commit ccb064d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drm/ResourceManager.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ ResourceManager::~ResourceManager() {
4747
uevent_listener_.Exit();
4848
}
4949

50-
static int find_virtio_gpu_card(ResourceManager *res_man, char* path_pattern, int start, int end) {
50+
static int FindVirtioGpuCard(ResourceManager *res_man, char* path_pattern,
51+
int start, int end) {
5152
bool find = false;
5253
int i = 0;
53-
for(i = start; i <= end; i++) {
54+
for (i = start; i <= end; i++) {
5455
std::ostringstream path;
5556
path << path_pattern << i;
5657
auto dev = DrmDevice::CreateInstance(path.str(), res_man);
@@ -137,7 +138,7 @@ void ResourceManager::Init() {
137138
// is SR-IOV or iGPU + dGPU
138139
// if not find virtio_gpu, we choose igpu
139140
if (node_num == 2) {
140-
int card_id = find_virtio_gpu_card(this, path_pattern, 0, 1);
141+
int card_id = FindVirtioGpuCard(this, path_pattern, 0, 1);
141142
if (card_id < 0) {
142143
card_id = 0;
143144
}
@@ -151,7 +152,7 @@ void ResourceManager::Init() {
151152
// is SRI-IOV + dGPU, use virtio-gpu for display
152153
// if not find virtio_gpu, we choose igpu
153154
if (node_num == 3) {
154-
int card_id = find_virtio_gpu_card(this, path_pattern, 0, 2);
155+
int card_id = FindVirtioGpuCard(this, path_pattern, 0, 2);
155156
if (card_id < 0) {
156157
card_id = 0;
157158
}

0 commit comments

Comments
 (0)