summaryrefslogtreecommitdiffstats
path: root/lib/fonts/font_pearl_8x8.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2016-05-21 02:04:27 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-21 02:58:30 +0200
commitc8cdd2be213f0f5372287a764225665f1ac64e56 (patch)
treed1dc98b6a330aeb27a824971f018c39965f3f447 /lib/fonts/font_pearl_8x8.c
parentfs/efs/super.c: fix return value (diff)
downloadlinux-c8cdd2be213f0f5372287a764225665f1ac64e56.tar.xz
linux-c8cdd2be213f0f5372287a764225665f1ac64e56.zip
init/main.c: simplify initcall_blacklisted()
Using kasprintf to get the function name makes us look up the name twice, along with all the vsnprintf overhead of parsing the format string etc. It also means there is an allocation failure case to deal with. Since symbol_string in vsprintf.c would anyway allocate an array of size KSYM_SYMBOL_LEN on the stack, that might as well be done up here. Moreover, since this is a debug feature and the blacklisted_initcalls list is usually empty, we might as well test that and thus avoid looking up the symbol name even once in the common case. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Prarit Bhargava <prarit@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/fonts/font_pearl_8x8.c')
0 files changed, 0 insertions, 0 deletions