gpu: ipu-v3: fix div_ratio type
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:48 +0000 (15:33 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 30 Oct 2015 16:13:47 +0000 (17:13 +0100)
commit9b6d0d33c848661c859ccee331b9d2c2ba74489b
tree1b8e7f42e4d7c8529ed0e14ccd86618c7e8c47de
parent3e8b2246c36f4a340febc97d140db5dd727bb3c6
gpu: ipu-v3: fix div_ratio type

The variable can be negative.

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: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-csi.c