From 37a9a22eee01eae170049c95d628c33f75ab8efa Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 3 Sep 2023 20:15:25 +0200 Subject: coverity: fix: remove dead code Signed-off-by: David Oberhollenzer --- lib/io/src/xfrm/ostream.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib') diff --git a/lib/io/src/xfrm/ostream.c b/lib/io/src/xfrm/ostream.c index c035f2a..2b42084 100644 --- a/lib/io/src/xfrm/ostream.c +++ b/lib/io/src/xfrm/ostream.c @@ -51,13 +51,6 @@ static int flush_inbuf(ostream_xfrm_t *xfrm, bool finish) break; } - if (off_out > 0) { - ret = xfrm->wrapped->append(xfrm->wrapped, - xfrm->outbuf, off_out); - if (ret) - return ret; - } - if (off_in < avail_in) { memmove(xfrm->inbuf, xfrm->inbuf + off_in, avail_in - off_in); xfrm->inbuf_used -= off_in; -- cgit v1.2.3