diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-05-14 18:34:39 +0200 |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-05-14 18:34:39 +0200 |
commit | b4fbe1d34d6f54045b5c6236d86aacd4340ec83d (patch) | |
tree | 5f0d8a6fc7d399388f983a069f2c0ac087022e93 /lib/route/tc.c | |
parent | eed2afaab7aa72fae393a395a8879b91a922ff5e (diff) | |
download | libnl-b4fbe1d34d6f54045b5c6236d86aacd4340ec83d.tar.gz |
Replace RTNL_LINK_NOT_FOUND with just 0
The interface index 0 is reserved and can be safely used to
signal that the device does not exist.
Diffstat (limited to 'lib/route/tc.c')
-rw-r--r-- | lib/route/tc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/route/tc.c b/lib/route/tc.c index de909be..15e88d4 100644 --- a/lib/route/tc.c +++ b/lib/route/tc.c @@ -274,10 +274,7 @@ void tca_set_ifindex(struct rtnl_tca *t, int ifindex) int tca_get_ifindex(struct rtnl_tca *t) { - if (t->ce_mask & TCA_ATTR_IFINDEX) - return t->tc_ifindex; - else - return RTNL_LINK_NOT_FOUND; + return t->tc_ifindex; } void tca_set_handle(struct rtnl_tca *t, uint32_t handle) |