]> bbs.cooldavid.org Git - net-next-2.6.git/commit
module: refactor out section header rewriting
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Aug 2010 18:59:06 +0000 (12:59 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Aug 2010 03:29:06 +0000 (12:59 +0930)
commit8b5f61a795fe37be090b0fd18b6b7271db9298e0
tree4440e449af9207b25e62b4d8ad0dc16500720e65
parent3264d3f9dd532ed9c3eb9491619e3f485b72747f
module: refactor out section header rewriting

Put all the "rewrite and check section headers" in one place.  This
adds another iteration over the sections, but it's far clearer.  We
iterate once for every find_section() so we already iterate over many
times.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c