mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Clean up errors in amdgpu_umc.c
@ 2023-08-23  8:42 XueBing Chen
  0 siblings, 0 replies; only message in thread
From: XueBing Chen @ 2023-08-23  8:42 UTC (permalink / raw)
  To: alexander.deucher, airlied, daniel; +Cc: amd-gfx, dri-devel, linux-kernel

Fix the following errors reported by checkpatch:

ERROR: space required before the open parenthesis '('

Signed-off-by: XueBing Chen <chenxuebing@jari.cn>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
index db0d94ca4ffc..e62a986b0875 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
@@ -102,7 +102,7 @@ static int amdgpu_umc_do_page_retirement(struct amdgpu_device *adev,
 			/* still call query_ras_error_address to clear error status
 			 * even NOMEM error is encountered
 			 */
-			if(!err_data->err_addr)
+			if (!err_data->err_addr)
 				dev_warn(adev->dev, "Failed to alloc memory for "
 						"umc error address record!\n");
 
@@ -126,7 +126,7 @@ static int amdgpu_umc_do_page_retirement(struct amdgpu_device *adev,
 			/* still call query_ras_error_address to clear error status
 			 * even NOMEM error is encountered
 			 */
-			if(!err_data->err_addr)
+			if (!err_data->err_addr)
 				dev_warn(adev->dev, "Failed to alloc memory for "
 						"umc error address record!\n");
 
-- 
2.17.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-23  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-23  8:42 [PATCH] drm/amdgpu: Clean up errors in amdgpu_umc.c XueBing Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®