HSI: omap_ssi_port: fix handling of_get_named_gpio result
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:44 +0000 (15:33 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 7 Jan 2016 15:07:54 +0000 (16:07 +0100)
commit525e1abc6b5a7d8bd9006de1da6e99722305ea2b
tree79703a6b4d2c5247544f2be9ed56475f58be4bac
parent6bf6ded3008a407ccab5ad72eb59ab71b97cc290
HSI: omap_ssi_port: fix handling of_get_named_gpio 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_port.c