projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b07b914
)
drm/gma500: Remove null check before kfree
author
Himanshu Jha
<
[email protected]
>
Wed, 30 Aug 2017 13:25:56 +0000
(18:55 +0530)
committer
Daniel Vetter
<
[email protected]
>
Thu, 31 Aug 2017 07:24:15 +0000
(09:24 +0200)
kfree on NULL pointer is a no-op and therefore checking is redundant.
Signed-off-by: Himanshu Jha <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/gma500/cdv_intel_dp.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/gma500/cdv_intel_dp.c
b/drivers/gpu/drm/gma500/cdv_intel_dp.c
index c52f9adf5e04c620cee1043edaa84f828ccffb43..a4bb89b7878f9f966f09c570d47035c365de1110 100644
(file)
--- a/
drivers/gpu/drm/gma500/cdv_intel_dp.c
+++ b/
drivers/gpu/drm/gma500/cdv_intel_dp.c
@@
-1901,10
+1901,8
@@
cdv_intel_dp_destroy(struct drm_connector *connector)
if (is_edp(gma_encoder)) {
/* cdv_intel_panel_destroy_backlight(connector->dev); */
- if (intel_dp->panel_fixed_mode) {
- kfree(intel_dp->panel_fixed_mode);
- intel_dp->panel_fixed_mode = NULL;
- }
+ kfree(intel_dp->panel_fixed_mode);
+ intel_dp->panel_fixed_mode = NULL;
}
i2c_del_adapter(&intel_dp->adapter);
drm_connector_unregister(connector);