Staging: lustre: include: libcfs: removed else before return statement in libcfs_crypto.h
authorDarshana Padmadas <darshanapadmadas@gmail.com>
Tue, 16 Sep 2014 07:54:13 +0000 (13:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:29:34 +0000 (17:29 -0700)
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>
drivers/staging/lustre/include/linux/libcfs/libcfs_crypto.h

index 9e610a9..e866369 100644 (file)
@@ -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 */