test_serial: Resolve control reaching end of non-void function
mctp-binding_serial_pipe_tx() was missing a return:
tests/test_serial.c: In function ‘mctp_binding_serial_pipe_tx’:
tests/test_serial.c:34:1: error: control reaches end of non-void function [-Werror=return-type]
34 | }
| ^
cc1: all warnings being treated as errors
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ia15a13fe4e283b76bfb4a856ea188a46ac5cf12c
diff --git a/tests/test_serial.c b/tests/test_serial.c
index 9691037..a7c3752 100644
--- a/tests/test_serial.c
+++ b/tests/test_serial.c
@@ -34,6 +34,8 @@
rc = write(ctx->egress, buf, len);
assert(rc == len);
+
+ return rc;
}
uint8_t mctp_msg_src[2 * MCTP_BTU];