[PATCH] drm/amd/amdgpu: Remove unnecessary OOM messages

Srinivasan Shanmugam srinivasan.shanmugam at amd.com
Wed May 3 09:09:37 UTC 2023


The following checkpatch warning is removed.

WARNING: Possible unnecessary 'out of memory' message

Cc: Christian König <christian.koenig at amd.com>
Cc: Alex Deucher <alexander.deucher at amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
index b582b83c4984..2e0f82f7b2c0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
@@ -318,10 +318,8 @@ static bool amdgpu_atrm_get_bios(struct amdgpu_device *adev)
 	pci_dev_put(pdev);
 
 	adev->bios = kmalloc(size, GFP_KERNEL);
-	if (!adev->bios) {
-		dev_err(adev->dev, "Unable to allocate bios\n");
+	if (!adev->bios)
 		return false;
-	}
 
 	for (i = 0; i < size / ATRM_BIOS_PAGE; i++) {
 		ret = amdgpu_atrm_call(atrm_handle,
-- 
2.25.1



More information about the amd-gfx mailing list