HSI: omap_ssi: fix handling ida_simple_get result
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:43 +0000 (15:33 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 7 Jan 2016 15:06:22 +0000 (16:06 +0100)
commit6bf6ded3008a407ccab5ad72eb59ab71b97cc290
treefb6e5de8a0a0826ea2ec8743d899d03e8cfd6137
parent403c5c0650816375527a6feecfb255d9b494dda3
HSI: omap_ssi: fix handling ida_simple_get result

The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/controllers/omap_ssi.c