Skip to content

Commit eecda52

Browse files
tammyleinoarnopo
authored andcommitted
Removed unused code from rpmsg_get_endpoint
Case for src and dest address is unused since the first case matches src only. Signed-off-by: Tammy Leino <[email protected]>
1 parent 0307c3f commit eecda52

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/rpmsg/rpmsg.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,6 @@ struct rpmsg_endpoint *rpmsg_get_endpoint(struct rpmsg_device *rdev,
217217
/* try to get by local address only */
218218
if (addr != RPMSG_ADDR_ANY && ept->addr == addr)
219219
return ept;
220-
/* try to find match on local end remote address */
221-
if (addr == ept->addr && dest_addr == ept->dest_addr)
222-
return ept;
223220
/* else use name service and destination address */
224221
if (name)
225222
name_match = !strncmp(ept->name, name,

0 commit comments

Comments
 (0)