summaryrefslogtreecommitdiffstats
path: root/kernel/module-internal.h
diff options
context:
space:
mode:
authorElad Wexler <elad.wexler@gmail.com>2013-09-12 13:28:54 +0300
committerJohn Stultz <john.stultz@linaro.org>2013-09-17 11:19:27 -0700
commit233bcb411cd32d15c4d04271fa06ca8f2dc24eb8 (patch)
tree95c3488b678b00241c97c52dc6015c05e285bf10 /kernel/module-internal.h
parent389e067032fbb96e439abafae848dd447e4cafb4 (diff)
downloadlinux-stable-233bcb411cd32d15c4d04271fa06ca8f2dc24eb8.tar.gz
linux-stable-233bcb411cd32d15c4d04271fa06ca8f2dc24eb8.tar.bz2
linux-stable-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 'kernel/module-internal.h')
0 files changed, 0 insertions, 0 deletions