From a214e75457e5ff049e04a4f7bac76d647e4fcb6d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 28 Apr 2015 13:36:40 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Haller --- lib/route/tc.c | 3 --- 1 file changed, 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; }