staging: ccree: fix boolreturn.cocci warning
authorSuniel Mahesh <sunil.m@techveda.org>
Wed, 18 Oct 2017 06:41:55 +0000 (12:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:33:15 +0000 (15:33 +0200)
This fixes the following coccinelle warning:
WARNING: return of 0/1 in function 'ssi_is_hw_key' with return type bool.

return "false" instead of 0.

Signed-off-by: Suniel Mahesh <sunil.m@techveda.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_cipher.h

index c9a83df..f499962 100644 (file)
@@ -75,7 +75,7 @@ struct arm_hw_key_info {
 
 static inline bool ssi_is_hw_key(struct crypto_tfm *tfm)
 {
-       return 0;
+       return false;
 }
 
 #endif /* CRYPTO_TFM_REQ_HW_KEY */