Commit 9c244878 authored by Fabian Frederick's avatar Fabian Frederick Committed by Alex Deucher

drm/radeon: remove null test before kfree

Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f2c6b0f4
...@@ -1400,8 +1400,6 @@ static void radeon_pm_fini_old(struct radeon_device *rdev) ...@@ -1400,8 +1400,6 @@ static void radeon_pm_fini_old(struct radeon_device *rdev)
} }
radeon_hwmon_fini(rdev); radeon_hwmon_fini(rdev);
if (rdev->pm.power_state)
kfree(rdev->pm.power_state); kfree(rdev->pm.power_state);
} }
...@@ -1421,8 +1419,6 @@ static void radeon_pm_fini_dpm(struct radeon_device *rdev) ...@@ -1421,8 +1419,6 @@ static void radeon_pm_fini_dpm(struct radeon_device *rdev)
radeon_dpm_fini(rdev); radeon_dpm_fini(rdev);
radeon_hwmon_fini(rdev); radeon_hwmon_fini(rdev);
if (rdev->pm.power_state)
kfree(rdev->pm.power_state); kfree(rdev->pm.power_state);
} }
......
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