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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following checkpatch warning is removed.

WARNING: Possible unnecessary 'out of memory' message

Cc: Christian König <christian.koenig@xxxxxxx>
Cc: Alex Deucher <alexander.deucher@xxxxxxx>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@xxxxxxx>
---
 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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux