diff options
author | Shirish Pargaonkar <shirishpargaonkar@gmail.com> | 2011-01-29 13:54:58 -0600 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-01-31 17:29:18 +0000 |
commit | 7a8587e7c8e4e32ba778bfbbb822a0a7e8d5f3e3 (patch) | |
tree | b76abee21fd80b5556d95494f94813589c4e7eef /fs/cifs/cifsencrypt.c | |
parent | 31c2659d78c8be970833bc1e633593d291553ed3 (diff) | |
download | op-kernel-dev-7a8587e7c8e4e32ba778bfbbb822a0a7e8d5f3e3.zip op-kernel-dev-7a8587e7c8e4e32ba778bfbbb822a0a7e8d5f3e3.tar.gz |
cifs: No need to check crypto blockcipher allocation
Missed one change as per earlier suggestion.
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsencrypt.c')
-rw-r--r-- | fs/cifs/cifsencrypt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/cifsencrypt.c b/fs/cifs/cifsencrypt.c index 0db5f1d..a51585f 100644 --- a/fs/cifs/cifsencrypt.c +++ b/fs/cifs/cifsencrypt.c @@ -657,9 +657,10 @@ calc_seckey(struct cifsSesInfo *ses) get_random_bytes(sec_key, CIFS_SESS_KEY_SIZE); tfm_arc4 = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC); - if (!tfm_arc4 || IS_ERR(tfm_arc4)) { + if (IS_ERR(tfm_arc4)) { + rc = PTR_ERR(tfm_arc4); cERROR(1, "could not allocate crypto API arc4\n"); - return PTR_ERR(tfm_arc4); + return rc; } desc.tfm = tfm_arc4; |