Skip to content

Commit cce796d

Browse files
Dan Mileaarnopo
authored andcommittedNov 21, 2023
service: rpmsg_rpc: fix build error
The if (&rpc->ept) comparison will always evaluate as 'true', since rpc == &rpc->ept and rpc is previously checked to be valid. This produces an error when building open-amp with gcc >= 13. Signed-off-by: Dan Milea <[email protected]>
1 parent 78043fa commit cce796d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/service/rpmsg/rpc/rpmsg_rpc_client.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ void rpmsg_rpc_client_release(struct rpmsg_rpc_clt *rpc)
8181
{
8282
if (!rpc)
8383
return;
84-
if (&rpc->ept)
85-
rpmsg_destroy_ept(&rpc->ept);
84+
rpmsg_destroy_ept(&rpc->ept);
8685

8786
}
8887

0 commit comments

Comments
 (0)
Please sign in to comment.