tcp_hostcache: remove extraneous check.
All paths leading here already checked this setting. Reviewed by: rscheff
This commit is contained in:
parent
0c25bf7e7c
commit
7c71f3bd6a
@ -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"));
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user