From 86aa93d97139c40e386162d4ea1733c8713fac18 Mon Sep 17 00:00:00 2001 From: Oliver Brown Date: Fri, 22 Mar 2019 13:38:20 -0500 Subject: [PATCH] MLK-20209 hdmi: fixed unsigned compare against less than zero Fixed CID 17375, Unsigned compared against 0. Removed code with no effect. Signed-off-by: Oliver Brown --- drivers/video/fbdev/mxc/mxc_hdmi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/video/fbdev/mxc/mxc_hdmi.c b/drivers/video/fbdev/mxc/mxc_hdmi.c index e74dac538976..9d57ad5447ee 100644 --- a/drivers/video/fbdev/mxc/mxc_hdmi.c +++ b/drivers/video/fbdev/mxc/mxc_hdmi.c @@ -1041,12 +1041,6 @@ static int hdmi_phy_configure(struct mxc_hdmi *hdmi, unsigned char pRep, HDMI_PHY_I2CM_SLAVE_ADDR); hdmi_phy_test_clear(hdmi, 0); - if (hdmi->hdmi_data.video_mode.mPixelClock < 0) { - dev_dbg(&hdmi->pdev->dev, "Pixel clock (%d) must be positive\n", - hdmi->hdmi_data.video_mode.mPixelClock); - return false; - } - if (hdmi->hdmi_data.video_mode.mPixelClock <= 45250000) { switch (cRes) { case 8: -- 2.17.1