mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
drm/crtc: Remove redundant NULL check before kfree
kfree() on a NULL input is a no-op. Hence remove the check. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
committed by
Dave Airlie
parent
e3cc3520dc
commit
9e1c156ff0
@@ -470,10 +470,8 @@ void drm_crtc_cleanup(struct drm_crtc *crtc)
|
||||
{
|
||||
struct drm_device *dev = crtc->dev;
|
||||
|
||||
if (crtc->gamma_store) {
|
||||
kfree(crtc->gamma_store);
|
||||
crtc->gamma_store = NULL;
|
||||
}
|
||||
kfree(crtc->gamma_store);
|
||||
crtc->gamma_store = NULL;
|
||||
|
||||
drm_mode_object_put(dev, &crtc->base);
|
||||
list_del(&crtc->head);
|
||||
|
||||
Reference in New Issue
Block a user