mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
MINOR: sink: remove useless check after sink creation
It's useless to check if sink has been created with BUF type after calling sink_new_buf() since the goal of the function is to create a new sink of BUF type.
This commit is contained in:
parent
cb01da8d12
commit
ec770b7924
@ -830,7 +830,7 @@ static struct sink *sink_new_ringbuf(const char *id, const char *description,
|
|||||||
p->conf.args.line = p->conf.line = linenum;
|
p->conf.args.line = p->conf.line = linenum;
|
||||||
|
|
||||||
sink = sink_new_buf(id, description, LOG_FORMAT_RAW, BUFSIZE);
|
sink = sink_new_buf(id, description, LOG_FORMAT_RAW, BUFSIZE);
|
||||||
if (!sink || sink->type != SINK_TYPE_BUFFER) {
|
if (!sink) {
|
||||||
memprintf(err_msg, "unable to create a new sink buffer for ring '%s'", id);
|
memprintf(err_msg, "unable to create a new sink buffer for ring '%s'", id);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user