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:
parent
6af196f03f
commit
a214e75457
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue