Date: Fri, 9 Apr 2021 21:21:07 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7c71f3bd6ace - main - tcp_hostcache: remove extraneous check. All paths leading here already checked this setting. Message-ID: <202104092121.139LL7sO021667@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=7c71f3bd6acea654b3fc6fdb44f30e8ea601b422 commit 7c71f3bd6acea654b3fc6fdb44f30e8ea601b422 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2021-04-08 21:17:39 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2021-04-09 21:07:19 +0000 tcp_hostcache: remove extraneous check. All paths leading here already checked this setting. Reviewed by: rscheff --- sys/netinet/tcp_hostcache.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c index 130b08425096..300cbafe4bcd 100644 --- a/sys/netinet/tcp_hostcache.c +++ b/sys/netinet/tcp_hostcache.c @@ -325,9 +325,6 @@ tcp_hc_lookup(struct in_conninfo *inc, bool update) struct hc_head *hc_head; struct hc_metrics *hc_entry; - if (!V_tcp_use_hostcache) - return NULL; - KASSERT(inc != NULL, ("tcp_hc_lookup with NULL in_conninfo pointer")); /* @@ -395,9 +392,6 @@ tcp_hc_insert(struct in_conninfo *inc) struct hc_head *hc_head; struct hc_metrics *hc_entry; - if (!V_tcp_use_hostcache) - return NULL; - KASSERT(inc != NULL, ("tcp_hc_insert with NULL in_conninfo pointer")); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104092121.139LL7sO021667>