Skip to content
Commit 233bcb41 authored by Elad Wexler's avatar Elad Wexler Committed by John Stultz
Browse files

clocksource: Fix 'ret' data type of sysfs_override_clocksource() and sysfs_unbind_clocksource()



sysfs_override_clocksource(): The expression 'if (ret >= 0)' is always true.
This will cause clocksource_select() to always run.
Thus modified ret to be of type ssize_t.

sysfs_unbind_clocksource(): The expression 'if (ret < 0)' is always false.
So in case sysfs_get_uname() failed, the expression won't take an effect.
Thus modified ret to be of type ssize_t.

Signed-off-by: default avatarElad Wexler <elad.wexler@gmail.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 389e0670
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment