Skip to content

Commit 0c98082

Browse files
Sachin Kamattorvalds
authored andcommitted
drivers/video/exynos/exynos_mipi_dsi.c: fix an error check condition
Checking an unsigned variable for negative value returns false. Hence use the macro to fix it. Fixes the following smatch warning: drivers/video/exynos/exynos_mipi_dsi.c:417 exynos_mipi_dsi_probe() warn: unsigned 'dsim->irq' is never less than zero. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Donghwa Lee <dh09.lee@samsung.com> Cc: Inki Dae <inki.dae@samsung.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a25fc87 commit 0c98082

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/video/exynos/exynos_mipi_dsi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int exynos_mipi_dsi_probe(struct platform_device *pdev)
414414
}
415415

416416
dsim->irq = platform_get_irq(pdev, 0);
417-
if (dsim->irq < 0) {
417+
if (IS_ERR_VALUE(dsim->irq)) {
418418
dev_err(&pdev->dev, "failed to request dsim irq resource\n");
419419
ret = -EINVAL;
420420
goto err_platform_get_irq;

0 commit comments

Comments
 (0)