From 0cd8c6ead67cef88113d02ef53d4ffc0fba7eb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 30 May 2025 10:33:37 +0800 Subject: [PATCH] Chore: code cleanup --- src/detection/cpu/cpu_windows.c | 2 +- src/detection/gpu/gpu_linux.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/detection/cpu/cpu_windows.c b/src/detection/cpu/cpu_windows.c index cf95798f7..515262158 100644 --- a/src/detection/cpu/cpu_windows.c +++ b/src/detection/cpu/cpu_windows.c @@ -151,7 +151,7 @@ static const char* detectNCores(FFCPUResult* cpu) else if (ptr->Relationship == RelationProcessorCore) ++cpu->coresPhysical; else if (ptr->Relationship == RelationProcessorPackage) - cpu->packages++; + ++cpu->packages; } return NULL; diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c index ad2f0d4a2..681845f1f 100644 --- a/src/detection/gpu/gpu_linux.c +++ b/src/detection/gpu/gpu_linux.c @@ -351,10 +351,7 @@ static const char* drmDetectIntelSpecific(FFGPUResult* gpu, const char* drmKey, { { struct drm_xe_device_query query = { - .extensions = 0, .query = DRM_XE_DEVICE_QUERY_GT_TOPOLOGY, - .size = 0, - .data = 0, }; if (ioctl(fd, DRM_IOCTL_XE_DEVICE_QUERY, &query) >= 0) {