]> git.baikalelectronics.ru Git - kernel.git/commit
net: genetlink: push doit/dumpit code from genl_family_rcv_msg
authorJiri Pirko <jiri@mellanox.com>
Sat, 5 Oct 2019 18:04:33 +0000 (20:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 13:44:46 +0000 (15:44 +0200)
commit6abb97f707661e79e6a9d1722afa23acc7733a79
treef9cf59bec05a57f06d1923db243dc6cb74c7b202
parent21a776acfa1a4e6cf578957ad9b77ceff3fb5aa0
net: genetlink: push doit/dumpit code from genl_family_rcv_msg

Currently the function genl_family_rcv_msg() is quite big. Since it is
quite convenient, push code that is related to doit and dumpit ops into
separate functions.

Do small changes on the way, like rc/err unification, NULL check etc.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c