mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-13 19:00:25 -04:00
CLEANUP: peers: remove an unneeded null check
Coverity reported in GH #3181 that a NULL test was useless, in peers_trace(), which is true since the peer always belongs to a peers section and it was already dereferenced. Let's just remove the test to avoid the confusion.
This commit is contained in:
parent
ef206d441c
commit
6b9c3d0621
1 changed files with 2 additions and 3 deletions
|
|
@ -449,9 +449,8 @@ static void peers_trace(enum trace_level level, uint64_t mask,
|
|||
chunk_appendf(&trace_buf, "appctx=(%p, .fl=0x%08x, .st0=%d, .st1=%d) ",
|
||||
appctx, appctx->flags, appctx->st0, appctx->st1);
|
||||
|
||||
if (peers)
|
||||
chunk_appendf(&trace_buf, "peers=(.fl=0x%08x, local=%s) ",
|
||||
peers->flags, peers->local->id);
|
||||
chunk_appendf(&trace_buf, "peers=(.fl=0x%08x, local=%s) ",
|
||||
peers->flags, peers->local->id);
|
||||
|
||||
if (src->verbosity == PEERS_VERB_SIMPLE)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue