diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-04-28 11:36:40 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-05-05 14:14:20 (GMT) |
commit | a214e75457e5ff049e04a4f7bac76d647e4fcb6d (patch) | |
tree | c7313ae538190c6c12cdaa0d7b67ac4b5a3b7999 /lib/route/tc.c | |
parent | 6af196f03f245e06945f123ac49777c8d20e4cef (diff) | |
download | libnl-a214e75457e5ff049e04a4f7bac76d647e4fcb6d.zip libnl-a214e75457e5ff049e04a4f7bac76d647e4fcb6d.tar.gz libnl-a214e75457e5ff049e04a4f7bac76d647e4fcb6d.tar.bz2 |
route/tc: remove unnecessary check for tc_kind member of struct rtnl_tc
The tc_kind member of struct rtnl_tc (and all types which can be
converted to it) is defined as an array and can thus never be
NULL.
http://lists.infradead.org/pipermail/libnl/2015-April/001869.html
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/route/tc.c')
-rw-r--r-- | lib/route/tc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/route/tc.c b/lib/route/tc.c index 579405e..b3f4ac3 100644 --- a/lib/route/tc.c +++ b/lib/route/tc.c @@ -1053,9 +1053,6 @@ void *rtnl_tc_data(struct rtnl_tc *tc) size_t size; if (!tc->tc_ops) { - if (!tc->tc_kind) - BUG(); - if (!rtnl_tc_get_ops(tc)) return NULL; } |