summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-05-22 11:34:48 +0000
committerriastradh <riastradh@NetBSD.org>2022-05-22 11:34:48 +0000
commit44b9f046b654786aa8ba08564652f7250865cdfb (patch)
tree9c2e11b888d4946d0cfe234802ad7f7d54b41f17 /sys/dev
parent59c61f8e7f16ff5d012517d6520599f1aeb883a7 (diff)
hifn(4): Nix dead code. crp and callback are guaranteed nonnull.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/hifn7751.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 02cf7ca2c33..83661fe7dd4 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hifn7751.c,v 1.76 2022/05/22 11:31:33 riastradh Exp $ */
+/* $NetBSD: hifn7751.c,v 1.77 2022/05/22 11:34:48 riastradh Exp $ */
/* $OpenBSD: hifn7751.c,v 1.179 2020/01/11 21:34:03 cheloha Exp $ */
/*
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.76 2022/05/22 11:31:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.77 2022/05/22 11:34:48 riastradh Exp $");
#include <sys/param.h>
#include <sys/cprng.h>
@@ -2177,11 +2177,6 @@ hifn_process(void *arg, struct cryptop *crp, int hint)
int session, err = 0, ivlen;
struct cryptodesc *crd1, *crd2, *maccrd, *enccrd;
- if (crp == NULL || crp->crp_callback == NULL) {
- hifnstats.hst_invalid++;
- return (EINVAL);
- }
-
if ((cmd = pool_cache_get(sc->sc_cmd_cache, PR_NOWAIT)) == NULL) {
hifnstats.hst_nomem++;
err = ENOMEM;