diff options
author | Thomas Graf <tgraf@suug.ch> | 2005-11-10 02:25:52 +0100 |
---|---|---|
committer | Thomas Graf <tgr@axs.localdomain> | 2005-11-10 02:26:40 +0100 |
commit | a8f74b228826eef1cbe04a05647d61e896f5fd63 (patch) | |
tree | 6abffeafca83f1aa342ed905367fab1f5a1ac554 /net/ipv6 | |
parent | bfa83a9e03cf8d501c6272999843470afecb32ed (diff) | |
download | linux-a8f74b228826eef1cbe04a05647d61e896f5fd63.tar.bz2 |
[NETLINK]: Make netlink_callback->done() optional
Most netlink families make no use of the done() callback, making
it optional gets rid of all unnecessary dummy implementations.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 227e99ed510c..f7f42c3e96cb 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1710,7 +1710,7 @@ static void fib6_dump_end(struct netlink_callback *cb) static int fib6_dump_done(struct netlink_callback *cb) { fib6_dump_end(cb); - return cb->done(cb); + return cb->done ? cb->done(cb) : 0; } int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb) |