diff options
author | Elad Wexler <elad.wexler@gmail.com> | 2013-09-12 13:28:54 +0300 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2013-09-17 11:19:27 -0700 |
commit | 233bcb411cd32d15c4d04271fa06ca8f2dc24eb8 (patch) | |
tree | 95c3488b678b00241c97c52dc6015c05e285bf10 /Documentation/this_cpu_ops.txt | |
parent | 389e067032fbb96e439abafae848dd447e4cafb4 (diff) | |
download | talos-obmc-linux-233bcb411cd32d15c4d04271fa06ca8f2dc24eb8.tar.gz talos-obmc-linux-233bcb411cd32d15c4d04271fa06ca8f2dc24eb8.zip |
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: Elad Wexler <elad.wexler@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'Documentation/this_cpu_ops.txt')
0 files changed, 0 insertions, 0 deletions