From: Luca Boccassi Date: Wed, 24 Jun 2026 18:09:36 +0000 (+0100) Subject: sd-future: drop redundant branch in test reader fiber X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45033e39ec018cdbc2c3fc0399850a53c0a73fe0;p=thirdparty%2Fsystemd.git sd-future: drop redundant branch in test reader fiber Both the error and the success path returned (int) n, so the check was a no-op. Return the value directly. CID#1660095 Follow-up for 7bc793e21f2d4bf67bd311545270bc515fe63ad9 --- diff --git a/src/libsystemd/sd-future/test-fiber-ops.c b/src/libsystemd/sd-future/test-fiber-ops.c index f2c603fda0b..35a99527100 100644 --- a/src/libsystemd/sd-future/test-fiber-ops.c +++ b/src/libsystemd/sd-future/test-fiber-ops.c @@ -422,8 +422,6 @@ static int loop_write_zero_blocking_reader_fiber(void *userdata) { _cleanup_free_ char *buf = malloc(ctx->total); ASSERT_NOT_NULL(buf); ssize_t n = loop_read(ctx->pipefd[0], buf, ctx->total, /* do_poll= */ true); - if (n < 0) - return (int) n; return (int) n; }