Commit 3ea0bf37 authored by Himanshu Jha's avatar Himanshu Jha Committed by Daniel Vetter

drm/gma500: Remove null check before kfree

kfree on NULL pointer is a no-op and therefore checking is redundant.
Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1504099556-3887-1-git-send-email-himanshujha199640@gmail.com
parent b07b9146
...@@ -1901,11 +1901,9 @@ cdv_intel_dp_destroy(struct drm_connector *connector) ...@@ -1901,11 +1901,9 @@ cdv_intel_dp_destroy(struct drm_connector *connector)
if (is_edp(gma_encoder)) { if (is_edp(gma_encoder)) {
/* cdv_intel_panel_destroy_backlight(connector->dev); */ /* cdv_intel_panel_destroy_backlight(connector->dev); */
if (intel_dp->panel_fixed_mode) {
kfree(intel_dp->panel_fixed_mode); kfree(intel_dp->panel_fixed_mode);
intel_dp->panel_fixed_mode = NULL; intel_dp->panel_fixed_mode = NULL;
} }
}
i2c_del_adapter(&intel_dp->adapter); i2c_del_adapter(&intel_dp->adapter);
drm_connector_unregister(connector); drm_connector_unregister(connector);
drm_connector_cleanup(connector); drm_connector_cleanup(connector);
......
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