[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 --- crypto/cryptd.c | 2 -

[PATCH] padata: Remove unused but set variables

2016-10-17 Thread Tobias Klauser
ve the now unused variable pd which is only used to set pinst. Signed-off-by: Tobias Klauser --- 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/padata.c @@ -64

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 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 probably read

[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 --- drivers/crypto/mv_cesa.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto