diff options
Diffstat (limited to 'lib/route/tc.c')
-rw-r--r-- | lib/route/tc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/route/tc.c b/lib/route/tc.c index 09ae044..56aa410 100644 --- a/lib/route/tc.c +++ b/lib/route/tc.c @@ -189,11 +189,7 @@ int rtnl_tc_msg_build(struct rtnl_tc *tc, int type, int flags, .tcm_handle = tc->tc_handle, .tcm_parent = tc->tc_parent, }; - int req, err = -NLE_MSGSIZE; - - req = (TCA_ATTR_IFINDEX | TCA_ATTR_PARENT | TCA_ATTR_KIND); - if ((tc->ce_mask & req) != req) - return -NLE_MISSING_ATTR; + int err = -NLE_MSGSIZE; msg = nlmsg_alloc_simple(type, flags); if (!msg) |