isisd: fix Coverity warning

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>
This commit is contained in:
Emanuele Di Pascale 2020-07-10 15:55:52 +02:00
parent 37b6b408a0
commit 5e69d308a1

View 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;