Fixed compile time warning by adding upstream patches
[platform/upstream/libnl2.git] / lib / route / sch / tbf.c
index eccaf70..161d564 100644 (file)
@@ -166,7 +166,7 @@ static struct nl_msg *tbf_get_opts(struct rtnl_qdisc *qdisc)
        if (!tbf)
                return NULL;
 
-       if (!(tbf->qt_mask & required) != required)
+       if ((tbf->qt_mask & required) != required)
                return NULL;
 
        opts.limit = tbf->qt_limit;