Re: [PATCH] crypto: rsa - Remove unneeded error assignment

2018-04-20 Thread Herbert Xu
On Wed, Apr 11, 2018 at 06:37:17PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > 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. > > I

[PATCH] crypto: rsa - Remove unneeded error assignment

2018-04-11 Thread Fabio Estevam
From: Fabio Estevam 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 remo