[PATCH] crypto: rockchip - use devm_add_action_or_reset()

2016-08-23 Thread Sudip Mukherjee
: Sudip Mukherjee --- drivers/crypto/rockchip/rk3288_crypto.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/rockchip/rk3288_crypto.c b/drivers/crypto/rockchip/rk3288_crypto.c index af50825..d0f80c6 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.c

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-27 Thread Sudip Mukherjee
On Wednesday 25 May 2016 03:36 PM, Arnd Bergmann wrote: On Wednesday, May 25, 2016 7:35:17 AM CEST Sudip Mukherjee wrote: On Tuesday 24 May 2016 02:05 AM, Arnd Bergmann wrote: On Monday, May 23, 2016 6:14:08 PM CEST Sudip Mukherjee wrote: We have been getting build warning about: drivers/char

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Sudip Mukherjee
On Tuesday 24 May 2016 02:05 AM, Arnd Bergmann wrote: On Monday, May 23, 2016 6:14:08 PM CEST Sudip Mukherjee wrote: We have been getting build warning about: drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_read': drivers/char/hw_random/stm32-rng.c:82:19: warning: '

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Sudip Mukherjee
On Tuesday 24 May 2016 02:50 PM, Maxime Coquelin wrote: 2016-05-24 10:58 GMT+02:00 Arnd Bergmann : On Tuesday, May 24, 2016 10:50:17 AM CEST Maxime Coquelin wrote: diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 92a810648bd0..2a0fc90e4dc3 100644 --- a/

[PATCH] hwrng: stm32 - fix build warning

2016-05-23 Thread Sudip Mukherjee
urns out that sr can never be used uninitialized as sr is getting initialized in the while loop and while loop will always execute as the minimum value of max can be 32. So just initialize sr to 0 while declaring it to silence the compiler. Signed-off-by: Sudip Mukherjee --- build log at: https://

[PATCH] crypto: ccm - remove goto

2015-10-13 Thread Sudip Mukherjee
Instead of using goto and jumping to a label and then returning from there, lets return directly. The label out: is not used from anywhere else in the code. Signed-off-by: Sudip Mukherjee --- crypto/ccm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/ccm.c b

[PATCH] X.509: remove always false comparison

2015-09-17 Thread Sudip Mukherjee
hour, min and sec are unsigned int and they can never be less than zero. Signed-off-by: Sudip Mukherjee --- crypto/asymmetric_keys/x509_cert_parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/asymmetric_keys/x509_cert_parser.c b/crypto/asymmetric_keys