From: Elad Wexler Date: Thu, 12 Sep 2013 10:28:54 +0000 (+0300) Subject: clocksource: Fix 'ret' data type of sysfs_override_clocksource() and sysfs_unbind_clo... X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~39^2~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=233bcb411cd32d15c4d04271fa06ca8f2dc24eb8;p=pandora-kernel.git 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 Signed-off-by: John Stultz --- Reading git-diff-tree failed