module: refactor load_module
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Aug 2010 18:59:02 +0000 (12:59 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Aug 2010 03:29:02 +0000 (12:59 +0930)
commitf91a13bb99b73961d4e2743a6ff296ac553abc4f
treeeb922cfbd4af965491200d307baf3b60b8b0319e
parent2409e74278b7fb917d39ef6d3c16223c04a386f2
module: refactor load_module

I'd start from the trivial stuff. There's a fair amount of straight-line
code that just makes the function hard to read just because you have to
page up and down so far. Some of it is trivial to just create a helper
function for.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c