summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorOliver Brown <oliver.brown@nxp.com>2019-03-22 13:38:20 -0500
committerOliver Brown <oliver.brown@nxp.com>2019-03-23 13:37:33 -0500
commit59d2728eff787cae222807c786fc7a9fcbc84681 (patch)
treeaa8a3f8dd443452f52685554669c6c0d1ccd6211 /drivers/video
parent5f9b64ed556c201841cccb87b02d559621451d9f (diff)
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 <oliver.brown@nxp.com> (cherry picked from commit b86debc52acd4131515f62130f52c2d0f48cdbfe)
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/mxc/mxc_hdmi.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/video/fbdev/mxc/mxc_hdmi.c b/drivers/video/fbdev/mxc/mxc_hdmi.c
index c8aeadda0288..6bb39f9795d1 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: