aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-11-09 20:25:52 -0500
committerThomas Graf <tgr@axs.localdomain>2005-11-09 20:26:40 -0500
commita8f74b228826eef1cbe04a05647d61e896f5fd63 (patch)
tree6abffeafca83f1aa342ed905367fab1f5a1ac554 /net/core
parentbfa83a9e03cf8d501c6272999843470afecb32ed (diff)
[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/core')
-rw-r--r--net/core/rtnetlink.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 9bed7569ce3f..193fd8637f9f 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -462,11 +462,6 @@ void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change)
462 netlink_broadcast(rtnl, skb, 0, RTNLGRP_LINK, GFP_KERNEL); 462 netlink_broadcast(rtnl, skb, 0, RTNLGRP_LINK, GFP_KERNEL);
463} 463}
464 464
465static int rtnetlink_done(struct netlink_callback *cb)
466{
467 return 0;
468}
469
470/* Protected by RTNL sempahore. */ 465/* Protected by RTNL sempahore. */
471static struct rtattr **rta_buf; 466static struct rtattr **rta_buf;
472static int rtattr_max; 467static int rtattr_max;
@@ -533,8 +528,7 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp)
533 goto err_inval; 528 goto err_inval;
534 529
535 if ((*errp = netlink_dump_start(rtnl, skb, nlh, 530 if ((*errp = netlink_dump_start(rtnl, skb, nlh,
536 link->dumpit, 531 link->dumpit, NULL)) != 0) {
537 rtnetlink_done)) != 0) {
538 return -1; 532 return -1;
539 } 533 }
540 rlen = NLMSG_ALIGN(nlh->nlmsg_len); 534 rlen = NLMSG_ALIGN(nlh->nlmsg_len);