Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Srinivasan Shanmugam and committed by
Alex Deucher
7db36fe9 9eec1fc1

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
··· 868 868 if (!numa_info) { 869 869 struct sysinfo info; 870 870 871 - numa_info = kzalloc(sizeof *numa_info, GFP_KERNEL); 871 + numa_info = kzalloc(sizeof(*numa_info), GFP_KERNEL); 872 872 if (!numa_info) 873 873 return NULL; 874 874