Skip to content

Commit

Permalink
rpmsg: cleanup is_rpmsg_ept_ready
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
  • Loading branch information
arnopo authored and galak committed Jun 14, 2018
1 parent bb59e41 commit ecc858a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/include/openamp/rpmsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ void rpmsg_destroy_ept(struct rpmsg_endpoint *ept);
* Returns 1 if the rpmsg endpoint has both local addr and destination
* addr set, 0 otherwise
*/
static inline uint32_t is_rpmsg_ept_ready(struct rpmsg_endpoint *ept)
static inline unsigned int is_rpmsg_ept_ready(struct rpmsg_endpoint *ept)
{
return (ept->dest_addr == RPMSG_ADDR_ANY ||
ept->addr == RPMSG_ADDR_ANY) ? 0 : 1;
return (ept->dest_addr != RPMSG_ADDR_ANY &&
ept->addr != RPMSG_ADDR_ANY);
}

#if defined __cplusplus
Expand Down

0 comments on commit ecc858a

Please sign in to comment.