Skip to contentSkip to conversation

crypto: rsa-pkcs1pad: indent a couple statements

PATCH In review Dan Carpenter 2 participants 2 messages Mar 8, 2016 – Mar 11, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: rsa-pkcs1pad: indent a couple statements

These if statements aren't indented far enough and it makes static checkers complain.

---
Hopefully GCC6 will start complaining about these as well?

crypto/rsa-pkcs1pad.c +2 -2
index 1cea67d..1eb5cbe 100644
@@ -705,7 +705,7 @@ static int pkcs1pad_create(struct crypto_template *tmpl, struct rtattr **tb)
 			     CRYPTO_MAX_ALG_NAME, "pkcs1pad(%s)",
 			     rsa_alg->base.cra_driver_name) > 					CRYPTO_MAX_ALG_NAME)
-		goto out_drop_alg;
+			goto out_drop_alg;
 	} else {
 		if (snprintf(inst->alg.base.cra_name,
 			     CRYPTO_MAX_ALG_NAME, "pkcs1pad(%s,%s)",
@@ -715,7 +715,7 @@ static int pkcs1pad_create(struct crypto_template *tmpl, struct rtattr **tb)
 			     CRYPTO_MAX_ALG_NAME, "pkcs1pad(%s,%s)",
 			     rsa_alg->base.cra_driver_name, hash_name) > 					CRYPTO_MAX_ALG_NAME)
-		goto out_free_hash;
+			goto out_free_hash;
 	}
 
 	inst->alg.base.cra_flags = rsa_alg->base.cra_flags & CRYPTO_ALG_ASYNC;
maintainer
#1 lore raw
Quoted 4 lines · Dan Carpenter

These if statements aren't indented far enough and it makes static checkers complain.

Sorry but this doesn't apply against cryptodev.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt