Skip to content

Commit 0cd8c6e

Browse files
committed
Chore: code cleanup
1 parent f8479da commit 0cd8c6e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/detection/cpu/cpu_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static const char* detectNCores(FFCPUResult* cpu)
151151
else if (ptr->Relationship == RelationProcessorCore)
152152
++cpu->coresPhysical;
153153
else if (ptr->Relationship == RelationProcessorPackage)
154-
cpu->packages++;
154+
++cpu->packages;
155155
}
156156

157157
return NULL;

src/detection/gpu/gpu_linux.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,7 @@ static const char* drmDetectIntelSpecific(FFGPUResult* gpu, const char* drmKey,
351351
{
352352
{
353353
struct drm_xe_device_query query = {
354-
.extensions = 0,
355354
.query = DRM_XE_DEVICE_QUERY_GT_TOPOLOGY,
356-
.size = 0,
357-
.data = 0,
358355
};
359356
if (ioctl(fd, DRM_IOCTL_XE_DEVICE_QUERY, &query) >= 0)
360357
{

0 commit comments

Comments
 (0)