]> git.ipfire.org Git - thirdparty/kmod.git/commit
modprobe: Make rmmod_do_module() contain all the removal sequence
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 29 Mar 2022 09:05:40 +0000 (02:05 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 7 Apr 2022 05:04:42 +0000 (22:04 -0700)
commitea3c8adfd39a5f6137482daca21058132ec5ee8d
tree01cdc7f38e124bd18954709109f5754391be19c8
parentd29ed6ef9f0db54acda5a51993bba7ff6f8ca7cd
modprobe: Make rmmod_do_module() contain all the removal sequence

Move the remaining part of the removal sequence dangling in
rmmod_do_remove_module() to rmmod_do_module() so we can consider this
function is the one controlling all the module removals.

While at it, add some comments about the removal order and normalize
coding style in this function.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
tools/modprobe.c