From: Srinivasan Shanmugam Date: Fri, 30 Jun 2023 15:27:35 +0000 (+0530) Subject: drm/amdgpu: Fix error & warnings in gmc_v8_0.c X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2f77b5931f68b1d1c290fff9d785fe15f1fa2a47;p=linux.git drm/amdgpu: Fix error & warnings in gmc_v8_0.c Fix below checkpatch error & warnings: ERROR: trailing statements should be on next line + default: BUG(); WARNING: braces {} are not necessary for single statement blocks WARNING: braces {} are not necessary for any arm of this statement WARNING: Block comments should align the * on each line Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam Acked-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 061c320bdff12..23bfadca0fc87 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c @@ -251,7 +251,8 @@ static int gmc_v8_0_init_microcode(struct amdgpu_device *adev) case CHIP_STONEY: case CHIP_VEGAM: return 0; - default: BUG(); + default: + BUG(); } snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_mc.bin", chip_name);