crypto: lib/sha256 - return void
[sfrench/cifs-2.6.git] / include / crypto / sha256_base.h
index cea60cff80bd870f5c9153d07277e2d47919b413..6ded110783ae87dd97c40edc42b83ad0a08431f6 100644 (file)
@@ -22,14 +22,16 @@ static inline int sha224_base_init(struct shash_desc *desc)
 {
        struct sha256_state *sctx = shash_desc_ctx(desc);
 
-       return sha224_init(sctx);
+       sha224_init(sctx);
+       return 0;
 }
 
 static inline int sha256_base_init(struct shash_desc *desc)
 {
        struct sha256_state *sctx = shash_desc_ctx(desc);
 
-       return sha256_init(sctx);
+       sha256_init(sctx);
+       return 0;
 }
 
 static inline int sha256_base_do_update(struct shash_desc *desc,