diff options
author | Andreas Dilger <[email protected]> | 2016-03-26 15:40:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-03-29 12:06:51 -0700 |
commit | e43c658c5a97570f4c5be8e94eb2ad30d4033123 (patch) | |
tree | 952fad60a87de724a455831994a5128b8694fe8f | |
parent | c11e27a4ee39479b9afef86bfed8ef3f75756262 (diff) |
staging: lustre: libcfs: return proper error code for cfs_crypto_hash_speed()
Return a real error code, -ENOENT, instead of a -1.
Signed-off-by: Andreas Dilger <[email protected]>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5053
Reviewed-on: http://review.whamcloud.com/9990
Reviewed-by: Bob Glossman <[email protected]>
Reviewed-by: James Simmons <[email protected]>
Reviewed-by: Oleg Drokin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c b/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c index d5bb10fec511..90d6e082aead 100644 --- a/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c +++ b/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c @@ -357,7 +357,7 @@ int cfs_crypto_hash_speed(enum cfs_crypto_hash_alg hash_alg) { if (hash_alg < CFS_HASH_ALG_MAX) return cfs_crypto_hash_speeds[hash_alg]; - return -1; + return -ENOENT; } EXPORT_SYMBOL(cfs_crypto_hash_speed); |