提交 f5740b2e 编写于 作者: D Darshana Padmadas 提交者: Greg Kroah-Hartman

Staging: lustre: include: libcfs: removed else before return statement in libcfs_crypto.h

This is a patch to libcfs_crypto.h that fixes warning on unnecessary else before return statement found by checkpatch.pl tool.
Signed-off-by: NDarshana Padmadas <darshanapadmadas@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 225557bf
...@@ -83,7 +83,6 @@ static inline const char *cfs_crypto_hash_name(unsigned char hash_alg) ...@@ -83,7 +83,6 @@ static inline const char *cfs_crypto_hash_name(unsigned char hash_alg)
ht = cfs_crypto_hash_type(hash_alg); ht = cfs_crypto_hash_type(hash_alg);
if (ht) if (ht)
return ht->cht_name; return ht->cht_name;
else
return "unknown"; return "unknown";
} }
...@@ -95,7 +94,6 @@ static inline int cfs_crypto_hash_digestsize(unsigned char hash_alg) ...@@ -95,7 +94,6 @@ static inline int cfs_crypto_hash_digestsize(unsigned char hash_alg)
ht = cfs_crypto_hash_type(hash_alg); ht = cfs_crypto_hash_type(hash_alg);
if (ht) if (ht)
return ht->cht_size; return ht->cht_size;
else
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册