module: add within_module() function

commit 9b20a352d7 upstream.

It is just a small optimization that allows to replace few
occurrences of within_module_init() || within_module_core()
with a single call.

Signed-off-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Petr Mladek 2014-07-27 07:24:01 +09:30 • committed by Ben Hutchings
commit 4bfbcffa10
2 changed files with 9 additions and 8 deletions