mtd: refactor call to request_module
authorKees Cook <keescook@chromium.org>
Mon, 8 Jul 2013 13:05:12 +0000 (06:05 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 20:01:42 +0000 (21:01 +0100)
commitf9827dde2f6a1b64f8241de18ccf5027a636d8f4
tree0db03c67262eed2efc6273e2398181e6613f64b9
parent2e294972f0c3616df160f95604d1a75056b75a8a
mtd: refactor call to request_module

This reduces the size of the stack frame when calling request_module().
Performing the sprintf before the call is not needed.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/gen_probe.c