From: Darshana Padmadas Date: Tue, 16 Sep 2014 07:54:13 +0000 (+0530) Subject: Staging: lustre: include: libcfs: removed else before return statement in libcfs_crypto.h X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f5740b2e7e74fa9ba915aa74bfba7cf849dce8a7;p=deliverable%2Flinux.git 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 --- 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 */