]> 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)
commit2636978519808c52dbf058196251baa336a9ea89
treef9cf59bec05a57f06d1923db243dc6cb74c7b202
parent666cc39c42a58dd5e71343929d328486bcf479f2
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