Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci hifn(4): Nix dead code. crp and callback are gu...
details: https://anonhg.NetBSD.org/src/rev/3b331c32f64b
branches: trunk
changeset: 366320:3b331c32f64b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun May 22 11:34:48 2022 +0000
description:
hifn(4): Nix dead code. crp and callback are guaranteed nonnull.
diffstat:
sys/dev/pci/hifn7751.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 49039c907cd5 -r 3b331c32f64b sys/dev/pci/hifn7751.c
--- a/sys/dev/pci/hifn7751.c Sun May 22 11:34:40 2022 +0000
+++ b/sys/dev/pci/hifn7751.c Sun May 22 11:34:48 2022 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index