Skip to content

Commit f5740b2

Browse files
darshanapdasgregkh
authored andcommitted
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 <darshanapadmadas@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 225557b commit f5740b2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/staging/lustre/include/linux/libcfs/libcfs_crypto.h‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ static inline const char *cfs_crypto_hash_name(unsigned char hash_alg)
8383
ht = cfs_crypto_hash_type(hash_alg);
8484
if (ht)
8585
return ht->cht_name;
86-
else
87-
return "unknown";
86+
return "unknown";
8887
}
8988

9089
/** Return digest size for valid algorithm identifier or 0 */
@@ -95,8 +94,7 @@ static inline int cfs_crypto_hash_digestsize(unsigned char hash_alg)
9594
ht = cfs_crypto_hash_type(hash_alg);
9695
if (ht)
9796
return ht->cht_size;
98-
else
99-
return 0;
97+
return 0;
10098
}
10199

102100
/** Return hash identifier for valid hash algorithm name or 0xFF */

0 commit comments

Comments
 (0)