mirror of https://gitee.com/openkylin/linux.git
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 <andreas.dilger@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5053 Reviewed-on: http://review.whamcloud.com/9990 Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: James Simmons <uja.ornl@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c11e27a4ee
commit
e43c658c5a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue