aboutsummaryrefslogtreecommitdiff
path: root/kernel-features.h
diff options
context:
space:
mode:
authorEric B Munson <emunson@mgebm.net>2010-11-03 09:56:53 -0600
committerEric B Munson <emunson@mgebm.net>2010-11-09 13:50:22 -0700
commitaf9467a5bfbb2fc9696882b1f46ff6b88d794022 (patch)
tree44b0eeea547d0d24079624802fb5730a0c6134db /kernel-features.h
parentd871b423f989ab89109369622eae7db3c120181c (diff)
downloadlibhugetlbfs-af9467a5bfbb2fc9696882b1f46ff6b88d794022.tar.gz
Fix return value tests for hugetlbfs_test_feature
The function hugetlbfs_test_feature currently returns 0 if the requested feature is not present, a positive integer if the feature is present, and -ENOSYS if the requested feature is invalid. The way that hugetlbfs_test_feature is currently used is any non-zero return value means the requested feature is present. This patch corrects this usage to use only positive integer return values to mean a feature is present. Signed-off-by: Eric B Munson <emunson@mgebm.net>
Diffstat (limited to 'kernel-features.h')
0 files changed, 0 insertions, 0 deletions