]> git.baikalelectronics.ru Git - kernel.git/commit
genetlink: unify registration functions
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Nov 2013 13:19:08 +0000 (14:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2013 01:50:23 +0000 (20:50 -0500)
commitd9d131f1fe96dc1a1284b1b1337bf801c4a25004
tree11e9648ccbd27021e18307f5639684b5c563c19c
parent6906dc47091e7b39430154b5cf19c9e0564dab56
genetlink: unify registration functions

Now that the ops assignment is just two variables rather than a
long list iteration etc., there's no reason to separately export
__genl_register_family() and __genl_register_family_with_ops().

Unify the two functions into __genl_register_family() and make
genl_register_family_with_ops() call it after assigning the ops.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h
net/netlink/genetlink.c