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>
This commit is contained in:
Tobias Klauser 2015-04-28 13:36:40 +02:00 committed by Thomas Haller
parent 6af196f03f
commit a214e75457

View file

@ -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;
}