summaryrefslogtreecommitdiff
path: root/sys/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/crypto.c8
-rw-r--r--sys/crypto/cryptodev.h4
2 files changed, 5 insertions, 7 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c
index a278f305ea3..dc613267ed6 100644
--- a/sys/crypto/crypto.c
+++ b/sys/crypto/crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.c,v 1.86 2021/10/13 13:08:58 bluhm Exp $ */
+/* $OpenBSD: crypto.c,v 1.87 2021/10/13 22:43:44 bluhm Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -384,10 +384,10 @@ crypto_unregister(u_int32_t driverid, int alg)
/*
* Add crypto request to a queue, to be processed by a kernel thread.
*/
-int
+void
crypto_dispatch(struct cryptop *crp)
{
- int error = 0, lock = 1, s;
+ int lock = 1, s;
u_int32_t hid;
s = splvm();
@@ -414,8 +414,6 @@ crypto_dispatch(struct cryptop *crp)
task_set(&crp->crp_task, (void (*))crypto_invoke, crp);
task_add(tq, &crp->crp_task);
}
-
- return error;
}
/*
diff --git a/sys/crypto/cryptodev.h b/sys/crypto/cryptodev.h
index 699074db83f..86b5d93509c 100644
--- a/sys/crypto/cryptodev.h
+++ b/sys/crypto/cryptodev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.h,v 1.75 2021/10/13 13:08:58 bluhm Exp $ */
+/* $OpenBSD: cryptodev.h,v 1.76 2021/10/13 22:43:44 bluhm Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -218,7 +218,7 @@ void crypto_init(void);
int crypto_newsession(u_int64_t *, struct cryptoini *, int);
int crypto_freesession(u_int64_t);
-int crypto_dispatch(struct cryptop *);
+void crypto_dispatch(struct cryptop *);
int crypto_register(u_int32_t, int *,
int (*)(u_int32_t *, struct cryptoini *), int (*)(u_int64_t),
int (*)(struct cryptop *));