Evgeniy Polyakov wrote: > Do not allocate and send new skb if there are no listeners. > cn_netlink_send() can return -ESRCH in this case.
I don't think it makes sense to return an error. netlink_has_listeners() can return false positives, so no error would still not mean that the packet was really delivered. cn_netlink_send also doesn't propagate the return code of netlink_broadcast, so nobody seems to be interested anyway. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
