Skip to content

Commit 0b12678

Browse files
committed
mctpd: Better comment on get_endpoint_peer()
Signed-off-by: Matt Johnston <[email protected]>
1 parent 663fa78 commit 0b12678

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mctpd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,8 +1458,9 @@ static int query_get_endpoint_id(ctx *ctx, const dest_phys *dest,
14581458
return rc;
14591459
}
14601460

1461-
/* Returns the peer associated with the endpoint.
1462-
* Returns NULL if the endpoint successfully replies "not yet assigned".
1461+
/* Returns 0, and ret_peer associated with the endpoint.
1462+
* Returns 0, ret_peer=NULL if the endpoint successfully replies "not yet assigned".
1463+
* Returns negative error code on failure.
14631464
*/
14641465
static int get_endpoint_peer(ctx *ctx, sd_bus_error *berr,
14651466
const dest_phys *dest, peer **ret_peer)

0 commit comments

Comments
 (0)