selftests/timers: fix write return value handlng
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:41 +0000 (15:33 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 11 Dec 2015 06:41:05 +0000 (22:41 -0800)
commit3b44edaaa1fffccea7edc018dd807581c97a6aea
tree19acec5d276b5e114daaea3a39879bc525aef4d6
parent390dd67c471a43a8a0f36c7d5177de49e7749c59
selftests/timers: fix write return value handlng

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: John Stultz <john.stultz@linaro.org>
tools/testing/selftests/timers/clocksource-switch.c