OSDN Git Service

drm/amd/amdgpu: Fix warnings in amdgpu_irq.c
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Tue, 23 May 2023 19:47:48 +0000 (01:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:55:38 +0000 (10:55 -0400)
commit413521a4c9f4bbb4637b9ff3427070325890b08f
treec3959effe8e13de5f2114039b8a319d99e722e60
parent353491c48697df8a133bc468dc1b8ef65045254a
drm/amd/amdgpu: Fix warnings in amdgpu_irq.c

checkpatch reports:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
WARNING: braces {} are not necessary for any arm of this statement
+               if (nvec <= 0) {
[...]
+               } else {
[...]
WARNING: Block comments use a trailing */ on a separate line

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c