diff options
| author | Maninder Singh <[email protected]> | 2015-06-26 07:56:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2015-06-29 15:21:51 +0000 |
| commit | a08c1d516fb3eb302ff14a10eedda844e75c625f (patch) | |
| tree | f2fef0bf2885015b636d0ff20d8898651d013ecb /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amdgpu: use kzalloc for allocating one thing (diff) | |
| download | kernel-a08c1d516fb3eb302ff14a10eedda844e75c625f.tar.gz kernel-a08c1d516fb3eb302ff14a10eedda844e75c625f.zip | |
drm/amdgpu: remove unnecessary check before kfree
kfree(NULL) is safe and this check is probably not required
Signed-off-by: Maninder Singh <[email protected]>
Reviewed-by: Vaneet Narang <[email protected]>
Reviewed-by: Christian Konig <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index fec487d1c870..a85cd08901a7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1575,8 +1575,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev) amdgpu_fence_driver_fini(adev); amdgpu_fbdev_fini(adev); r = amdgpu_fini(adev); - if (adev->ip_block_enabled) - kfree(adev->ip_block_enabled); + kfree(adev->ip_block_enabled); adev->ip_block_enabled = NULL; adev->accel_working = false; /* free i2c buses */ |
