Skip to contentSkip to conversation

exynos4-is: print error message on timeout

PATCH New Dan Carpenter 1 participant 1 message Aug 23, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exynos4-is: print error message on timeout

There is a stray '!' character so the error message never gets printed.

---
Static checker stuff. Not tested.

drivers/media/platform/exynos4-is/fimc-is-regs.c +1 -1
index 63c68ec..42f2925 100644
@@ -236,7 +236,7 @@ int fimc_is_itf_mode_change(struct fimc_is *is)
 	fimc_is_hw_change_mode(is);
 	ret = fimc_is_wait_event(is, IS_ST_CHANGE_MODE, 1,
 				FIMC_IS_CONFIG_TIMEOUT);
-	if (!ret < 0)
+	if (ret < 0)
 		dev_err(&is->pdev->dev, "%s(): mode change (%d) timeout\n",
 			__func__, is->config_index);
 	return ret;