]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/video/exynos/exynos_mipi_dsi.c: fix an error check condition
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 20 Feb 2013 02:13:41 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:08 +0000 (16:52 +1100)
commit8cd27fa5e084198c06ebd02744667a2d1c44b72d
tree24cd37afdef50a73c95802f598a466ae860c4159
parent77dd60ae3cb121d33ffb1d2a9717e2840f2ab020
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>
drivers/video/exynos/exynos_mipi_dsi.c