summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam/key_gen.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2013-03-27 00:10:14 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2013-04-25 15:01:43 +0200
commit66b3e8879f42a571e6779a6c4e5ed486aaaf6fef (patch)
treeecb96d93086b34d2c6edb696709e0365cae9633f /drivers/crypto/caam/key_gen.c
parentcrypto: sha512 - Create module providing optimized SHA512 routines using SSSE... (diff)
downloadlinux-66b3e8879f42a571e6779a6c4e5ed486aaaf6fef.tar.xz
linux-66b3e8879f42a571e6779a6c4e5ed486aaaf6fef.zip
crypto: caam - change key gen functions to return signed int
commit 2af8f4a "crypto: caam - coccicheck fixes" added error return values yet neglected to change the type from unsigned. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/key_gen.c')
-rw-r--r--drivers/crypto/caam/key_gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/key_gen.c b/drivers/crypto/caam/key_gen.c
index f6dba10246c3..87138d2adb5f 100644
--- a/drivers/crypto/caam/key_gen.c
+++ b/drivers/crypto/caam/key_gen.c
@@ -44,7 +44,7 @@ Split key generation-----------------------------------------------
[06] 0x64260028 fifostr: class2 mdsplit-jdk len=40
@0xffe04000
*/
-u32 gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len,
+int gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len,
int split_key_pad_len, const u8 *key_in, u32 keylen,
u32 alg_op)
{