]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - crypto/af_alg.c
crypto: algif - move to generic async completion
[mirror_ubuntu-bionic-kernel.git] / crypto / af_alg.c
index 337cf382718ee3cd81ffe3cdc480052a6f634798..85cea9de324a4f577bcbfb273d8f3a8917ca60e6 100644 (file)
@@ -481,33 +481,6 @@ int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con)
 }
 EXPORT_SYMBOL_GPL(af_alg_cmsg_send);
 
-int af_alg_wait_for_completion(int err, struct af_alg_completion *completion)
-{
-       switch (err) {
-       case -EINPROGRESS:
-       case -EBUSY:
-               wait_for_completion(&completion->completion);
-               reinit_completion(&completion->completion);
-               err = completion->err;
-               break;
-       };
-
-       return err;
-}
-EXPORT_SYMBOL_GPL(af_alg_wait_for_completion);
-
-void af_alg_complete(struct crypto_async_request *req, int err)
-{
-       struct af_alg_completion *completion = req->data;
-
-       if (err == -EINPROGRESS)
-               return;
-
-       completion->err = err;
-       complete(&completion->completion);
-}
-EXPORT_SYMBOL_GPL(af_alg_complete);
-
 /**
  * af_alg_alloc_tsgl - allocate the TX SGL
  *