transport: Use a direct return to reduce branching
Save ourselves from the mental gymnastics of the break statement.
Change-Id: Ib58717b7abe4416e2788d8ce3d03b6317c94ee39
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/src/transport/transport.c b/src/transport/transport.c
index 8f95cd1..d80e90e 100644
--- a/src/transport/transport.c
+++ b/src/transport/transport.c
@@ -209,7 +209,7 @@
ret = pldm_transport_poll(transport,
(int)(timeval_to_msec(&remaining)));
if (ret <= 0) {
- break;
+ return PLDM_REQUESTER_RECV_FAIL;
}
pldm_tid_t src_tid;