]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: opal: fix type of token
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:56 +0000 (15:33 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 3 Oct 2015 13:08:20 +0000 (15:08 +0200)
commit13faba2e344195b7a134ba9fd3a86eabba57140e
tree79ad9bfab12789887a201a532dd2353c171e7a68
parent96f8a43bf8e8ca8dd6bbecfbc85b92515b2ca206
rtc: opal: fix type of token

The variable can take signed values.

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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-opal.c