[PATCH 5/7] drm/bridge: lt9211: combine equal branches

Philipp Zabel <[email protected]>
Newsgroups org.freedesktop.lists.dri-devel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Combine two branches that set the predivider to the same value.

Signed-off-by: Philipp Zabel <[email protected]>
---
 drivers/gpu/drm/bridge/lontium-lt9211.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/bridge/lontium-lt9211.c b/drivers/gpu/drm/bridge/lontium-lt9211.c
index 5e5601551658..14afffcb2e4a 100644
--- a/drivers/gpu/drm/bridge/lontium-lt9211.c
+++ b/drivers/gpu/drm/bridge/lontium-lt9211.c
@@ -993,10 +993,7 @@ static int lt9211c_configure_tx(struct lt9211 *ctx, bool jeida, bool bpp24,
 		phy_clk = (u32)(mode->clock * 7);
 
 	/* 0x8231: prediv sel */
-	if (mode->clock < 20000) {
-		val = 0x28;
-		pre_div = 1;
-	} else if (mode->clock < 40000) {
+	if (mode->clock < 40000) {
 		val = 0x28;
 		pre_div = 1;
 	} else if (mode->clock < 80000) {
-- 
2.47.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.