[PATCH] crypto: cleaning and refactoring in rsa.c

2016-03-20 Thread maitesin
* Removed several unused initializations of variables. * Inlined couple of functions. * rsa_check_key_length: changed to use only the switch statement. * rsa_setkey: refactored the implementation to be closer to the other functions in the file. Signed-off-by: Oscar Forner Martinez

[PATCH] crypto: cleaning and refactoring in rsa.c

2016-03-20 Thread maitesin
* Removed several unused initializations of variables. * Inlined couple of functions. * rsa_check_key_length: changed to use only the switch statement. * rsa_setkey: refactored the implementation to be closer to the other functions in the file. Signed-off-by: Oscar Forner Martinez ---

Re: [PATCH] crypto: cleaning and refactoring in rsa.c

2016-03-19 Thread Herbert Xu
On Fri, Mar 18, 2016 at 08:39:51PM +, maitesin wrote: > * Removed several unused initializations of variables. > * Inlined couple of functions. > * rsa_check_key_length: changed to use only the switch statement. > * rsa_setkey: refactored the implementation to be closer to the other >

Re: [PATCH] crypto: cleaning and refactoring in rsa.c

2016-03-19 Thread Herbert Xu
On Fri, Mar 18, 2016 at 08:39:51PM +, maitesin wrote: > * Removed several unused initializations of variables. > * Inlined couple of functions. > * rsa_check_key_length: changed to use only the switch statement. > * rsa_setkey: refactored the implementation to be closer to the other >