Module Name:    src
Committed By:   riastradh
Date:           Sun May 22 11:34:48 UTC 2022

Modified Files:
        src/sys/dev/pci: hifn7751.c

Log Message:
hifn(4): Nix dead code.  crp and callback are guaranteed nonnull.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dev/pci/hifn7751.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/hifn7751.c
diff -u src/sys/dev/pci/hifn7751.c:1.76 src/sys/dev/pci/hifn7751.c:1.77
--- src/sys/dev/pci/hifn7751.c:1.76	Sun May 22 11:31:33 2022
+++ src/sys/dev/pci/hifn7751.c	Sun May 22 11:34:48 2022
@@ -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 *
 	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;

Reply via email to