summaryrefslogtreecommitdiffstats
path: root/cryptodev_cipher.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-02-20 10:45:48 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-02-20 10:45:48 +0100
commitffe4e0a7e85af0dcb4d6bae8dd753e69ebd2a262 (patch)
treeb6802bedc61419fcf60b4a41d9dbb97b52ccc417 /cryptodev_cipher.c
parent123adfcd44866545a424799998f951bdbfcfeb5c (diff)
downloadcryptodev-linux-ffe4e0a7e85af0dcb4d6bae8dd753e69ebd2a262.tar.gz
cryptodev-linux-ffe4e0a7e85af0dcb4d6bae8dd753e69ebd2a262.tar.xz
cryptodev-linux-ffe4e0a7e85af0dcb4d6bae8dd753e69ebd2a262.zip
Corrected usage of wait_for_completion
Diffstat (limited to 'cryptodev_cipher.c')
-rw-r--r--cryptodev_cipher.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cryptodev_cipher.c b/cryptodev_cipher.c
index 86b3bdc..97998fe 100644
--- a/cryptodev_cipher.c
+++ b/cryptodev_cipher.c
@@ -147,12 +147,8 @@ static inline int waitfor (struct cryptodev_result* cr, ssize_t ret)
break;
case -EINPROGRESS:
case -EBUSY:
- ret = wait_for_completion(&cr->completion);
+ wait_for_completion(&cr->completion);
/* no error from wait_for_completion */
- if (ret) {
- dprintk(0,KERN_ERR,"error waiting for async request completion: %zd\n", ret);
- return ret;
- }
if (cr->err) {
dprintk(0,KERN_ERR,"error from async request: %zd \n", ret);