Skip to content

Commit 7db36fe

Browse files
srishanmalexdeucher
authored andcommitted
drm/amdgpu: Use parentheses for sizeof *numa_info in 'amdgpu_acpi_get_numa_info'
Fixes the below: WARNING: sizeof *numa_info should be sizeof(*numa_info) Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 9eec1fc commit 7db36fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ static struct amdgpu_numa_info *amdgpu_acpi_get_numa_info(uint32_t pxm)
868868
if (!numa_info) {
869869
struct sysinfo info;
870870

871-
numa_info = kzalloc(sizeof *numa_info, GFP_KERNEL);
871+
numa_info = kzalloc(sizeof(*numa_info), GFP_KERNEL);
872872
if (!numa_info)
873873
return NULL;
874874

0 commit comments

Comments
 (0)