drivers/video/exynos/exynos_mipi_dsi.c: fix an error check condition
authorSachin Kamat <[email protected]>
Fri, 22 Feb 2013 00:42:27 +0000 (16:42 -0800)
committerLinus Torvalds <[email protected]>
Fri, 22 Feb 2013 01:22:18 +0000 (17:22 -0800)
commit0c980826211611178b6d76b246d00a4c840f21e5
tree6a5e1b4514e9419fb2407fdb3134ae2c3e1ede41
parenta25fc871b002c51944c05b9a09f1526dfbe32d39
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 <[email protected]>
Acked-by: Donghwa Lee <[email protected]>
Cc: Inki Dae <[email protected]>
Cc: Florian Tobias Schandinat <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/exynos/exynos_mipi_dsi.c