Commit 84ddba45 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] mipi-csis: get rid of a warning

drivers/media/platform/exynos4-is/mipi-csis.c: In function 's5pcsis_parse_dt':
drivers/media/platform/exynos4-is/mipi-csis.c:756:2: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if (state->index < 0 || state->index >= CSIS_MAX_ENTITIES)
  ^
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 8492ec69
...@@ -752,7 +752,7 @@ static int s5pcsis_parse_dt(struct platform_device *pdev, ...@@ -752,7 +752,7 @@ static int s5pcsis_parse_dt(struct platform_device *pdev,
v4l2_of_parse_endpoint(node, &endpoint); v4l2_of_parse_endpoint(node, &endpoint);
state->index = endpoint.base.port - FIMC_INPUT_MIPI_CSI2_0; state->index = endpoint.base.port - FIMC_INPUT_MIPI_CSI2_0;
if (state->index < 0 || state->index >= CSIS_MAX_ENTITIES) if (state->index >= CSIS_MAX_ENTITIES)
return -ENXIO; return -ENXIO;
/* Get MIPI CSI-2 bus configration from the endpoint node. */ /* Get MIPI CSI-2 bus configration from the endpoint node. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment