Skip to content

Commit ff798a9

Browse files
xiaoxiang781216arnopo
authored andcommitted
rpmsg: remove the address check in rpmsg_send/rpmsg_trysend
since rpmsg_send_offchannel_raw already do the same validation Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
1 parent 1812f55 commit ff798a9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/include/openamp/rpmsg.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ int rpmsg_send_offchannel_raw(struct rpmsg_endpoint *ept, uint32_t src,
146146
static inline int rpmsg_send(struct rpmsg_endpoint *ept, const void *data,
147147
int len)
148148
{
149-
if (ept->dest_addr == RPMSG_ADDR_ANY)
150-
return RPMSG_ERR_ADDR;
151149
return rpmsg_send_offchannel_raw(ept, ept->addr, ept->dest_addr, data,
152150
len, true);
153151
}
@@ -216,8 +214,6 @@ static inline int rpmsg_send_offchannel(struct rpmsg_endpoint *ept,
216214
static inline int rpmsg_trysend(struct rpmsg_endpoint *ept, const void *data,
217215
int len)
218216
{
219-
if (ept->dest_addr == RPMSG_ADDR_ANY)
220-
return RPMSG_ERR_ADDR;
221217
return rpmsg_send_offchannel_raw(ept, ept->addr, ept->dest_addr, data,
222218
len, false);
223219
}

0 commit comments

Comments
 (0)