Tag: 3e8afe35c36fa0e928e038667709966a71a9cfa5

crypto: use ERR_CAST

Author: Julia Lawall <Julia.Lawall@lip6.fr> Replace PTR_ERR followed by ERR_PTR by ERR_CAST, to be more concise. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression err,x; @@ – err = PTR_ERR(x); if (IS_ERR(x)) – return ERR_PTR(err); + return ERR_CAST(x); // Signed-off-by: Julia Lawall Signed-off-by: Herbert Xu — crypto/aead.c | 6 ++—- …

Continue reading