]> git.baikalelectronics.ru Git - kernel.git/commit
gpu/drm: delete same check in if condition
authorBernard Zhao <bernard@vivo.com>
Mon, 2 Nov 2020 03:07:36 +0000 (19:07 -0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Nov 2020 13:04:53 +0000 (14:04 +0100)
commit2c8cdae3ecd5a101f3d5fd5c5664ab44991ab3e8
tree1841a724ef06ee57a00f6ab5a21694022cfe5d96
parent5fc78f9c4794fbb4743beecb5b5e626628f06cfb
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
drivers/gpu/drm/drm_bridge_connector.c