Commit 9338acc5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher

drm/radeon: remove some dead code

If "rdev->bios" is NULL then we don't need to free it.
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3b4821f8
...@@ -638,10 +638,8 @@ static bool radeon_acpi_vfct_bios(struct radeon_device *rdev) ...@@ -638,10 +638,8 @@ static bool radeon_acpi_vfct_bios(struct radeon_device *rdev)
vhdr->ImageLength, vhdr->ImageLength,
GFP_KERNEL); GFP_KERNEL);
if (!rdev->bios) { if (!rdev->bios)
kfree(rdev->bios);
return false; return false;
}
return true; return true;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment