On Mon, Jun 15, 2015 at 01:18:42PM -0700, Tadeusz Struk wrote: > > +static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg > *alg) > +{ > + struct crypto_report_akcipher rakcipher; > + > + strncpy(rakcipher.type, "akcipher", sizeof(rakcipher.type)); > + strncpy(rakcipher.subtype, alg->cra_name, sizeof(rakcipher.subtype));
There is no point in reporting cra_name. That's already taken care of by crypto_user.c. > +static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) > + __attribute__ ((unused)); > + > +static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) > +{ > + seq_puts(m, "type : akcipher\n"); > + seq_printf(m, "subtype : %s\n", alg->cra_name); Ditto please drop subtype. Thanks, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html