[PATCH] crypto: cryptd - Remove unused but set variable 'tfm'

2016-10-31 Thread Tobias Klauser
Remove the unused but set variable tfm in cryptd_enqueue_request to fix the following warning when building with 'W=1': crypto/cryptd.c:125:21: warning: variable 'tfm' set but not used [-Wunused-but-set-variable] Signed-off-by: Tobias Klauser <tklau...@distanz.ch> --- crypto/cryptd.c | 2

[PATCH] padata: Remove unused but set variables

2016-10-17 Thread Tobias Klauser
unused variable pd which is only used to set pinst. Signed-off-by: Tobias Klauser <tklau...@distanz.ch> --- kernel/padata.c | 4 1 file changed, 4 deletions(-) diff --git a/kernel/padata.c b/kernel/padata.c index 7848f0566403..05316c9f32da 100644 --- a/kernel/padata.c +++ b/kernel/pa

Re: [PATCH, RFC] random: introduce getrandom(2) system call

2014-07-17 Thread Tobias Klauser
On 2014-07-17 at 11:18:15 +0200, Theodore Ts'o ty...@mit.edu wrote: [...] +/* + * Flags for getrandom(2) + * + * GAND_BLOCKAllow getrandom(2) to block + * GAND_RANDOM Use the /dev/random pool instead of /dev/urandom + */ Very minor nitpick: These should

[PATCH] crypto: mv_cesa - Use resource_size

2010-05-11 Thread Tobias Klauser
Use the resource_size function instead of manually calculating the resource size. This reduces the chance of introducing off-by-one errors. Signed-off-by: Tobias Klauser tklau...@distanz.ch --- drivers/crypto/mv_cesa.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git