mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
fib_dxr: free() does nothing if arg is NULL, so remove a redundant check.
MFC after: 1 week
This commit is contained in:
parent
3af2beb8b2
commit
858010643c
1 changed files with 2 additions and 5 deletions
|
|
@ -1142,14 +1142,11 @@ static void
|
|||
dxr_destroy(void *data)
|
||||
{
|
||||
struct dxr *dxr = data;
|
||||
struct dxr_aux *da;
|
||||
struct dxr_aux *da = dxr->aux;
|
||||
struct chunk_desc *cdp;
|
||||
struct trie_desc *tp;
|
||||
|
||||
if (dxr->d != NULL)
|
||||
free(dxr->d, M_DXRLPM);
|
||||
|
||||
da = dxr->aux;
|
||||
free(dxr->d, M_DXRLPM);
|
||||
free(dxr, M_DXRAUX);
|
||||
|
||||
if (da == NULL || atomic_fetchadd_int(&da->refcnt, -1) > 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue