diff options
author | Elad Wexler <elad.wexler@gmail.com> | 2013-09-12 12:28:54 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2013-09-17 20:19:27 +0200 |
commit | 233bcb411cd32d15c4d04271fa06ca8f2dc24eb8 (patch) | |
tree | 95c3488b678b00241c97c52dc6015c05e285bf10 /fs/nls | |
parent | Merge branch 'fortglx/3.12/time' into fortglx/3.13/time (diff) | |
download | linux-233bcb411cd32d15c4d04271fa06ca8f2dc24eb8.tar.xz 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 'fs/nls')
0 files changed, 0 insertions, 0 deletions