A useless test on peer variable was reported by cppcheck in peer_trace().
This patch should fix the issue #1165.
const struct peer *peer = a2;
struct peers *peers = NULL;
- if (peer && peer->appctx) {
+ if (peer->appctx) {
struct stream_interface *si;
si = peer->appctx->owner;
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) {