mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 04:43:37 -04:00
CLEANUP: peers: Remove useless test on peer variable in peer_trace()
A useless test on peer variable was reported by cppcheck in peer_trace(). This patch should fix the issue #1165.
This commit is contained in:
parent
b7c962b0c0
commit
d9e6b35701
1 changed files with 2 additions and 3 deletions
|
|
@ -443,7 +443,7 @@ static void peers_trace(enum trace_level level, uint64_t mask,
|
|||
const struct peer *peer = a2;
|
||||
struct peers *peers = NULL;
|
||||
|
||||
if (peer && peer->appctx) {
|
||||
if (peer->appctx) {
|
||||
struct stream_interface *si;
|
||||
|
||||
si = peer->appctx->owner;
|
||||
|
|
@ -456,8 +456,7 @@ static void peers_trace(enum trace_level level, uint64_t mask,
|
|||
|
||||
if (peers)
|
||||
chunk_appendf(&trace_buf, " %s", peers->local->id);
|
||||
if (peer)
|
||||
chunk_appendf(&trace_buf, " -> %s", peer->id);
|
||||
chunk_appendf(&trace_buf, " -> %s", peer->id);
|
||||
}
|
||||
|
||||
if (a3) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue