Signed-off-by: Parthasarathy Bhuvaragan <[email protected]>
---
 tipc/bearer.c | 2 +-
 tipc/link.c   | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/tipc/bearer.c b/tipc/bearer.c
index 30b54d9fe24e..3673f4f85f16 100644
--- a/tipc/bearer.c
+++ b/tipc/bearer.c
@@ -281,7 +281,7 @@ static int cmd_bearer_enable(struct nlmsghdr *nlh, const 
struct cmd *cmd,
                }
                if ((err = enable_udp_bearer(nlh, opts, cmdl)))
                        return err;
-       } else if ((strcmp(media, "eth") == 0) || (strcmp(media, "udp") == 0)) {
+       } else if (strcmp(media, "eth") == 0) {
                if (help_flag) {
                        cmd_bearer_enable_l2_help(cmdl);
                        return -EINVAL;
diff --git a/tipc/link.c b/tipc/link.c
index 89fb4ff4e7f9..a36c7abb5d52 100644
--- a/tipc/link.c
+++ b/tipc/link.c
@@ -475,8 +475,6 @@ static int cmd_link_set_prop(struct nlmsghdr *nlh, const 
struct cmd *cmd,
        mnl_attr_nest_end(nlh, attrs);
 
        return msg_doit(nlh, link_get_cb, &prop);
-
-       return 0;
 }
 
 static int cmd_link_set(struct nlmsghdr *nlh, const struct cmd *cmd,
-- 
2.1.4


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

Reply via email to