Skip to content

Commit

Permalink
Removed unused code from rpmsg_get_endpoint
Browse files Browse the repository at this point in the history
Case for src and dest address is unused since the first case matches src only.

Signed-off-by: Tammy Leino <tammy_leino@mentor.com>
  • Loading branch information
tammyleino authored and arnopo committed Apr 6, 2022
1 parent 0307c3f commit eecda52
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/rpmsg/rpmsg.c
Expand Up @@ -217,9 +217,6 @@ struct rpmsg_endpoint *rpmsg_get_endpoint(struct rpmsg_device *rdev,
/* try to get by local address only */
if (addr != RPMSG_ADDR_ANY && ept->addr == addr)
return ept;
/* try to find match on local end remote address */
if (addr == ept->addr && dest_addr == ept->dest_addr)
return ept;
/* else use name service and destination address */
if (name)
name_match = !strncmp(ept->name, name,
Expand Down

0 comments on commit eecda52

Please sign in to comment.