]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: rsa - Remove unneeded error assignment
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 11 Apr 2018 21:37:17 +0000 (18:37 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Apr 2018 16:58:37 +0000 (00:58 +0800)
commit3b0c31c138d6bcf87301cf82200f244e0c39f0de
tree208d299b2e5e33f3418d80cc41c0137aac207512
parenta242b904a34a6b764d718f5297b2b7951c75329d
crypto: rsa - Remove unneeded error assignment

There is no need to assign an error value to 'ret' prior
to calling mpi_read_raw_from_sgl() because in the case
of error the 'ret' variable will be assigned to the error
code inside the if block.

In the case of non failure, 'ret' will be overwritten
immediately after, so remove the unneeded assignment.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa.c