summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2020-11-01 19:07:36 -0800
committerThomas Zimmermann <tzimmermann@suse.de>2020-11-02 14:04:53 +0100
commit95d7a1a6f867f5e6acf62e07a463e0bea1d47b68 (patch)
tree1841a724ef06ee57a00f6ab5a21694022cfe5d96 /drivers
parent9bb7b689274b67ecb3641e399e76f84adc627df1 (diff)
gpu/drm: delete same check in if condition
In function drm_bridge_connector_get_modes_edid, drm_edid_is_valid will check weather (!edid), no need to check again in the if branch. Signed-off-by: Bernard Zhao <bernard@vivo.com> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20201102030736.3833-1-bernard@vivo.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/drm_bridge_connector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_bridge_connector.c b/drivers/gpu/drm/drm_bridge_connector.c
index a58cbde59c34..791379816837 100644
--- a/drivers/gpu/drm/drm_bridge_connector.c
+++ b/drivers/gpu/drm/drm_bridge_connector.c
@@ -241,7 +241,7 @@ static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector,
goto no_edid;
edid = bridge->funcs->get_edid(bridge, connector);
- if (!edid || !drm_edid_is_valid(edid)) {
+ if (!drm_edid_is_valid(edid)) {
kfree(edid);
goto no_edid;
}