]> git.proxmox.com Git - mirror_frr.git/commitdiff
isisd: fix Coverity warning
authorEmanuele Di Pascale <emanuele@voltanet.io>
Fri, 10 Jul 2020 13:55:52 +0000 (15:55 +0200)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Fri, 10 Jul 2020 13:55:54 +0000 (15:55 +0200)
no need to check cicuit->area, as all code paths leading there
had already dereferenced it.
Fixes CID 1496314

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
isisd/isis_circuit.c

index 03d7b3d07bde614d7551b3fa1b760ae9504ec6c0..e0e82e4725331c8ef067087937a4d2711cb850e6 100644 (file)
@@ -721,7 +721,7 @@ void isis_circuit_down(struct isis_circuit *circuit)
 #endif /* ifndef FABRICD */
 
        /* log adjacency changes if configured to do so */
-       if (circuit->area && circuit->area->log_adj_changes) {
+       if (circuit->area->log_adj_changes) {
                struct isis_adjacency *adj = NULL;
                if (circuit->circ_type == CIRCUIT_T_P2P) {
                        adj = circuit->u.p2p.neighbor;