summaryrefslogtreecommitdiff
path: root/drivers/media/platform/imx8
diff options
context:
space:
mode:
authorOliver Brown <oliver.brown@nxp.com>2019-03-22 13:44:37 -0500
committerOliver Brown <oliver.brown@nxp.com>2019-03-23 13:37:33 -0500
commit574e47cbee91ac197ab66d6677fb04c2197b5931 (patch)
tree8f3ceaa537756263730de7e829eb122fb4d62a2d /drivers/media/platform/imx8
parent59d2728eff787cae222807c786fc7a9fcbc84681 (diff)
MLK-20209 hdmi rx: fixed unsigned compare against less than zero
Fixed CID 3411368, Unsigned compared against 0. Removed comparison with no effect. Signed-off-by: Oliver Brown <oliver.brown@nxp.com> (cherry picked from commit 7a90cb82d00109cdd00eea67fbf9d75b6efe6172)
Diffstat (limited to 'drivers/media/platform/imx8')
-rw-r--r--drivers/media/platform/imx8/hdmi/mxc-hdmi-rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx.c b/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx.c
index 1eb48c1ebbd6..c4361ce3c47b 100644
--- a/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx.c
+++ b/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx.c
@@ -401,7 +401,7 @@ static int mxc_hdmi_enum_frame_interval(struct v4l2_subdev *sd,
{
struct mxc_hdmi_rx_dev *hdmi_rx = imx_sd_to_hdmi(sd);
- if (fie->index < 0 || fie->index > 8)
+ if (fie->index > 8)
return -EINVAL;
if (fie->width == 0 || fie->height == 0 ||