diff options
author | Maninder Singh <maninder1.s@samsung.com> | 2015-06-26 03:56:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-06-29 11:21:51 -0400 |
commit | a08c1d516fb3eb302ff14a10eedda844e75c625f (patch) | |
tree | f2fef0bf2885015b636d0ff20d8898651d013ecb /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 5f0b34cc72aa627fd28230be3de469321e0af03e (diff) |
drm/amdgpu: remove unnecessary check before kfree
kfree(NULL) is safe and this check is probably not required
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Reviewed-by: Christian Konig <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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) | |||
1575 | amdgpu_fence_driver_fini(adev); | 1575 | amdgpu_fence_driver_fini(adev); |
1576 | amdgpu_fbdev_fini(adev); | 1576 | amdgpu_fbdev_fini(adev); |
1577 | r = amdgpu_fini(adev); | 1577 | r = amdgpu_fini(adev); |
1578 | if (adev->ip_block_enabled) | 1578 | kfree(adev->ip_block_enabled); |
1579 | kfree(adev->ip_block_enabled); | ||
1580 | adev->ip_block_enabled = NULL; | 1579 | adev->ip_block_enabled = NULL; |
1581 | adev->accel_working = false; | 1580 | adev->accel_working = false; |
1582 | /* free i2c buses */ | 1581 | /* free i2c buses */ |