diff options
| author | Emanuele Di Pascale <emanuele@voltanet.io> | 2020-07-10 15:55:52 +0200 |
|---|---|---|
| committer | Emanuele Di Pascale <emanuele@voltanet.io> | 2020-07-10 15:55:54 +0200 |
| commit | 5e69d308a1b6099ff5df3c16a1f10660b1a96bf6 (patch) | |
| tree | a5b05b543ad7523c1aa35dc025c40154f53ed6fe | |
| parent | 37b6b408a02bcc93a8d8087d1ff529ea9ada6e61 (diff) | |
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>
| -rw-r--r-- | isisd/isis_circuit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c index 03d7b3d07b..e0e82e4725 100644 --- a/isisd/isis_circuit.c +++ b/isisd/isis_circuit.c @@ -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; |
