From f5740b2e7e74fa9ba915aa74bfba7cf849dce8a7 Mon Sep 17 00:00:00 2001 From: Darshana Padmadas Date: Tue, 16 Sep 2014 13:24:13 +0530 Subject: [PATCH] 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: Darshana Padmadas Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/include/linux/libcfs/libcfs_crypto.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_crypto.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_crypto.h index 9e610a9ce51f..e8663697e7a6 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs_crypto.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_crypto.h @@ -83,8 +83,7 @@ static inline const char *cfs_crypto_hash_name(unsigned char hash_alg) ht = cfs_crypto_hash_type(hash_alg); if (ht) return ht->cht_name; - else - return "unknown"; + return "unknown"; } /** Return digest size for valid algorithm identifier or 0 */ @@ -95,8 +94,7 @@ static inline int cfs_crypto_hash_digestsize(unsigned char hash_alg) ht = cfs_crypto_hash_type(hash_alg); if (ht) return ht->cht_size; - else - return 0; + return 0; } /** Return hash identifier for valid hash algorithm name or 0xFF */ -- 2.39.5